From bdc4aa1fd3ebb8196b2150968ebc076720b9f00b Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Tue, 14 Nov 2006 13:08:20 +0000 Subject: 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# --- basegfx/source/polygon/b2dpolypolygon.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'basegfx/source/polygon/b2dpolypolygon.cxx') 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 #endif +#ifndef _BGFX_MATRIX_B2DHOMMATRIX_HXX +#include +#endif + #include #include #include @@ -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 -- cgit v1.2.3