Author: alg
Date: Fri Jun 14 14:10:48 2013
New Revision: 1493078

URL: http://svn.apache.org/r1493078
Log:
i122456 Corrected tesellationing for fat lines

Modified:
    openoffice/trunk/main/vcl/unx/generic/gdi/salgdi.cxx

Modified: openoffice/trunk/main/vcl/unx/generic/gdi/salgdi.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/unx/generic/gdi/salgdi.cxx?rev=1493078&r1=1493077&r2=1493078&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/unx/generic/gdi/salgdi.cxx (original)
+++ openoffice/trunk/main/vcl/unx/generic/gdi/salgdi.cxx Fri Jun 14 14:10:48 
2013
@@ -1238,7 +1238,10 @@ bool X11SalGraphics::drawPolyLine(
     // #i11575#desc5#b adjust B2D tesselation result to raster positions
     basegfx::B2DPolygon aPolygon = rPolygon;
     const double fHalfWidth = 0.5 * rLineWidth.getX();
-    aPolygon.transform( 
basegfx::tools::createTranslateB2DHomMatrix(+fHalfWidth,+fHalfWidth) );
+
+    // #122456# This is probably thought to happen to align hairlines to pixel 
positions, so
+    // it should be a 0.5 translation, not more. It will definitely go wrong 
with fat lines
+    aPolygon.transform( basegfx::tools::createTranslateB2DHomMatrix(0.5, 0.5) 
);
 
     // shortcut for hairline drawing to improve performance
     bool bDrawnOk = true;


Reply via email to