From: buliabyak Date: Fri, 18 Jul 2008 16:34:04 +0000 (+0000) Subject: patch for bug 249665 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ed74cb4cb17e91ed7ee13bfa714f8d25859418e;p=inkscape.git patch for bug 249665 --- diff --git a/src/livarot/Path.cpp b/src/livarot/Path.cpp index 726b0001c..bc62e817e 100644 --- a/src/livarot/Path.cpp +++ b/src/livarot/Path.cpp @@ -813,6 +813,14 @@ void Path::FastBBox(double &l,double &t,double &r,double &b) } } +/* bug 249665: "...the calculation of the bounding-box for cubic-paths +has some extra steps to make it work corretly in Win32 that unfortunately +are unnecessary in Linux, generating wrong results. This only shows in +Type1 fonts because they use cubic-paths instead of the +bezier-paths used by True-Type fonts." +*/ + +#ifdef WIN32 NR::Point np = nData->p - nData->end; if ( np[NR::X] < l ) { l = np[NR::X]; @@ -840,6 +848,8 @@ void Path::FastBBox(double &l,double &t,double &r,double &b) if ( np[NR::Y] > b ) { b = np[NR::Y]; } +#endif + lastP = nData->p; } break;