diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 23:33:56 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 23:33:56 +0000 |
commit | b95972025cd26cf9a50d15091142c5fcccbf24c7 (patch) | |
tree | 2bf1ce6832a68aa1cdaa0029ab68920fb062c199 /vcl/source/gdi/region.cxx | |
parent | b8823de0a72436087ef036895d6c1215c6acfc16 (diff) |
INTEGRATION: CWS aw033 (1.17.20); FILE MERGED
2008/07/21 18:31:04 aw 1.17.20.1: #i39532# fixed an error when constructing region from polygon with bezier segments
Diffstat (limited to 'vcl/source/gdi/region.cxx')
-rw-r--r-- | vcl/source/gdi/region.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index 854ee67ce48d..fa9cf7d1fa54 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: region.cxx,v $ - * $Revision: 1.17 $ + * $Revision: 1.18 $ * * This file is part of OpenOffice.org. * @@ -934,7 +934,10 @@ void Region::ImplCreatePolyPolyRegion( const PolyPolygon& rPolyPoly ) void Region::ImplPolyPolyRegionToBandRegionFunc() { - const PolyPolygon aPolyPoly = GetPolyPolygon(); + // ensure to subdivide when bezier segemnts are used, it's going to + // be expanded to rectangles + PolyPolygon aPolyPoly; + GetPolyPolygon().AdaptiveSubdivide(aPolyPoly); if ( mpImplRegion->mnRefCount > 1 ) mpImplRegion->mnRefCount--; |