diff options
author | Chr. Rossmanith <Chr.Rossmanith@gmx.de> | 2012-04-28 19:41:35 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-04-29 14:12:46 +0200 |
commit | df094fbfbdcf64493f1c337df81d77452333bd86 (patch) | |
tree | 6479e0c0065f8c478fa967cf431cf90d28674bfe /filter | |
parent | enable rendering of text without any attributes (diff) | |
download | core-df094fbfbdcf64493f1c337df81d77452333bd86.tar.gz core-df094fbfbdcf64493f1c337df81d77452333bd86.zip |
Correct handling of corner radii of rectangles
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgreader.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx index 4e6f9f16b2f7..563060bf6af3 100644 --- a/filter/source/svg/svgreader.cxx +++ b/filter/source/svg/svgreader.cxx @@ -1351,7 +1351,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, @@ -2195,7 +2195,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; |