diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-05-03 13:10:32 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-05-03 13:10:32 +0000 |
commit | dd91a7a08caa3201d261504ab0f860b7d5026985 (patch) | |
tree | 082d70ee9865b3618429bce51688ac32b30ed9de /vcl/source | |
parent | ea65c168e06b2bc489f891b335e7bac3b75290a0 (diff) |
INTEGRATION: CWS presfixes05 (1.113.36); FILE MERGED
2005/04/29 13:26:10 thb 1.113.36.2: #i48298# Now really duplicating the first point, to close or correct the polygon. Also no longer duplicating the flags, but enforcing POLY_NORMAL for the newly added last point.
2005/04/26 22:50:05 thb 1.113.36.1: #i47795# Correctly setting flags of last point (must NOT be a control point)
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/glyphs/gcach_ftyp.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/vcl/source/glyphs/gcach_ftyp.cxx b/vcl/source/glyphs/gcach_ftyp.cxx index 26b28ef101fc..aaf6c6953f70 100644 --- a/vcl/source/glyphs/gcach_ftyp.cxx +++ b/vcl/source/glyphs/gcach_ftyp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gcach_ftyp.cxx,v $ * - * $Revision: 1.113 $ + * $Revision: 1.114 $ * - * last change: $Author: rt $ $Date: 2005-03-29 11:47:01 $ + * last change: $Author: obo $ $Date: 2005-05-03 14:10:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1877,7 +1877,11 @@ void PolyArgs::ClosePolygon() // #i35928# // This may be a invalid polygons, e.g. the last point is a control point. // So close the polygon (and add the first point again) if the last point - // is a control point or different from first + // is a control point or different from first. + // #i48298# + // Now really duplicating the first point, to close or correct the + // polygon. Also no longer duplicating the flags, but enforcing + // POLY_NORMAL for the newly added last point. const sal_uInt16 nPolySize(aPoly.GetSize()); if(nPolySize) { @@ -1885,11 +1889,11 @@ void PolyArgs::ClosePolygon() || (aPoly.GetPoint(nPolySize - 1) != aPoly.GetPoint(0))) { aPoly.SetSize(nPolySize + 1); - aPoly.SetPoint(aPoly.GetPoint(nPolySize - 1), nPolySize); + aPoly.SetPoint(aPoly.GetPoint(0), nPolySize); if(aPoly.HasFlags()) { - aPoly.SetFlags(nPolySize, aPoly.GetFlags(nPolySize - 1)); + aPoly.SetFlags(nPolySize, POLY_NORMAL); } } } |