diff options
Diffstat (limited to 'basegfx/source')
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygon.cxx | 13 |
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 |