diff options
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygon.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx index 841e43275b62..bd1e4ed144ee 100644 --- a/basegfx/source/polygon/b2dpolypolygon.cxx +++ b/basegfx/source/polygon/b2dpolypolygon.cxx @@ -2,9 +2,9 @@ * * $RCSfile: b2dpolypolygon.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: hjs $ $Date: 2004-06-25 17:17:55 $ + * last change: $Author: rt $ $Date: 2004-11-26 18:38:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -106,6 +106,13 @@ public: maPolygons = rToBeCopied.maPolygons; } + ImplB2DPolyPolygon(const ::basegfx::B2DPolygon& rToBeCopied) + : mnRefCount(0) + { + // complete initialization using copy + maPolygons.push_back( rToBeCopied ); + } + ~ImplB2DPolyPolygon() { } @@ -249,6 +256,11 @@ namespace basegfx mpPolyPolygon->incRefCount(); } + B2DPolyPolygon::B2DPolyPolygon(const B2DPolygon& rPolygon) + : mpPolyPolygon( new ImplB2DPolyPolygon(rPolygon) ) + { + } + B2DPolyPolygon::~B2DPolyPolygon() { if(mpPolyPolygon->getRefCount()) |