diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 17:38:43 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 17:38:43 +0000 |
commit | 62db916f4478de7691876063b03b223b532cc6e3 (patch) | |
tree | 2bf602d3f8c5cebdc91ca31ca2ef01ff7441e117 /basegfx | |
parent | 776a6bf0916414713d73a0b6c365b0881834739a (diff) |
INTEGRATION: CWS presentationengine01 (1.10.2); FILE MERGED
2004/08/10 09:08:29 thb 1.10.2.4: #110496# polygon copy constructor generated _two_ copies the polygon
2004/07/07 08:40:34 thb 1.10.2.3: RESYNC: (1.10-1.11); FILE MERGED
2004/05/05 11:46:01 thb 1.10.2.2: #110496# STL insert semantics imply that insertion happens _before_ the given iterator
2004/04/21 18:46:04 thb 1.10.2.1: #110496# Added B2DPolygon contructor to B2DPolyPolygon, added rect2poly convenience method to polygontools
Diffstat (limited to 'basegfx')
-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()) |