summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorHerbert Duerr <hdu@openoffice.org>2001-10-11 14:07:40 +0000
committerHerbert Duerr <hdu@openoffice.org>2001-10-11 14:07:40 +0000
commit20da1a8084680c1835bfe3cf619068b86c87c8f5 (patch)
treeb2e3a393ca62825332546cac4ea8273bba651478 /vcl
parentcd2a6118916f3c9f81d8a9a1f769adf2488bbb57 (diff)
#92957# fix for GetGlyphOutline worst case
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/glyphs/gcach_ftyp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/glyphs/gcach_ftyp.cxx b/vcl/source/glyphs/gcach_ftyp.cxx
index 84aa6444eabe..4afac42ca465 100644
--- a/vcl/source/glyphs/gcach_ftyp.cxx
+++ b/vcl/source/glyphs/gcach_ftyp.cxx
@@ -2,8 +2,8 @@
*
* $RCSfile: gcach_ftyp.cxx,v $
*
- * $Revision: 1.57 $
- * last change: $Author: hdu $ $Date: 2001-09-24 08:49:33 $
+ * $Revision: 1.58 $
+ * last change: $Author: hdu $ $Date: 2001-10-11 15:07:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1396,7 +1396,7 @@ bool FreetypeServerFont::GetGlyphOutline( int nGlyphIndex, PolyPolygon& rPolyPol
return false;
FT_Outline& rOutline = reinterpret_cast<FT_OutlineGlyphRec*>( aGlyphFT ) -> outline;
- const long nMaxPoints = rOutline.n_points * 2;
+ const long nMaxPoints = 1 + rOutline.n_points * 3;
const long nHeight = GetFontSelData().mnHeight;
PolyArgs aPolyArg( rPolyPoly, nMaxPoints, nHeight );