summaryrefslogtreecommitdiffstats
path: root/src/livarot/Path.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-07-18 16:34:04 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-07-18 16:34:04 +0000
commit16898b3a2d842ad3fa586f5f452e8e7c0b75eca1 (patch)
tree00392a55b783c44996b76d90a893eadd4607a0ba /src/livarot/Path.cpp
parentRemoved the unused allowshorthands preference. (diff)
downloadinkscape-16898b3a2d842ad3fa586f5f452e8e7c0b75eca1.tar.gz
inkscape-16898b3a2d842ad3fa586f5f452e8e7c0b75eca1.zip
patch for bug 249665
(bzr r6353)
Diffstat (limited to 'src/livarot/Path.cpp')
-rw-r--r--src/livarot/Path.cpp10
1 files changed, 10 insertions, 0 deletions
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;