[PATCH] Correct handling of corner radii of rectangles

Chr. Rossmanith Chr.Rossmanith at gmx.de
Sat Apr 28 10:41:35 PDT 2012


---
 filter/source/svg/svgreader.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx
index f6dc668..23794a7 100644
--- a/filter/source/svg/svgreader.cxx
+++ b/filter/source/svg/svgreader.cxx
@@ -1335,7 +1335,7 @@ struct ShapeWritingVisitor
                 basegfx::B2DPolygon aPoly;
                 aPoly = basegfx::tools::createPolygonFromRect(
                     basegfx::B2DRange(x,y,x+width,y+height),
-                    rx/width, ry/height );
+                    rx/(0.5*width), ry/(0.5*height) );
 
                 writePathShape(xAttrs,
                                xUnoAttrs,
@@ -2179,7 +2179,7 @@ struct ShapeRenderingVisitor
                 basegfx::B2DPolygon aPoly;
                 aPoly = basegfx::tools::createPolygonFromRect(
                     basegfx::B2DRange(x,y,x+width,y+height),
-                    rx, ry );
+                    rx/(0.5*width), ry/(0.5*height) );
 
                 renderPathShape(basegfx::B2DPolyPolygon(aPoly));
                 break;
-- 
1.7.9.5


--------------010701010901070805020304--


More information about the LibreOffice mailing list