summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-11-14 13:08:20 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-11-14 13:08:20 +0000
commitbdc4aa1fd3ebb8196b2150968ebc076720b9f00b (patch)
tree9c38376ec1917da244e498aea82e3e56c915da12 /basegfx/source/polygon
parent4fbd95d4f2a24e83e46f1b8a0a9f3fd8a05124de (diff)
INTEGRATION: CWS aw024 (1.12.6); FILE MERGED
2006/09/21 21:01:18 aw 1.12.6.7: RESYNC: (1.15-1.16); FILE MERGED 2006/08/04 13:34:05 aw 1.12.6.6: adaptions after resync 2006/08/03 16:02:04 aw 1.12.6.5: RESYNC: (1.14-1.15); FILE MERGED 2006/07/07 15:57:55 aw 1.12.6.4: adaptions after resync SRC680m171->SRC680m174 2006/06/29 10:54:02 aw 1.12.6.3: #i39528# do not create unique copy of poly(polygon) when transformation is empty 2005/09/19 21:49:04 aw 1.12.6.2: RESYNC: (1.12-1.13); FILE MERGED 2005/05/12 16:35:15 aw 1.12.6.1: #i39529#
Diffstat (limited to 'basegfx/source/polygon')
-rw-r--r--basegfx/source/polygon/b2dpolypolygon.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx
index c20290a49577..5197668b43d0 100644
--- a/basegfx/source/polygon/b2dpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dpolypolygon.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: b2dpolypolygon.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 08:02:27 $
+ * last change: $Author: ihi $ $Date: 2006-11-14 14:08:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -56,6 +56,10 @@
#include <rtl/instance.hxx>
#endif
+#ifndef _BGFX_MATRIX_B2DHOMMATRIX_HXX
+#include <basegfx/matrix/b2dhommatrix.hxx>
+#endif
+
#include <functional>
#include <vector>
#include <algorithm>
@@ -369,7 +373,10 @@ namespace basegfx
void B2DPolyPolygon::transform(const ::basegfx::B2DHomMatrix& rMatrix)
{
- mpPolyPolygon->transform(rMatrix);
+ if(mpPolyPolygon->count() && !rMatrix.isIdentity())
+ {
+ mpPolyPolygon->transform(rMatrix);
+ }
}
} // end of namespace basegfx