[Libreoffice-commits] .: svx/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Thu Nov 24 06:26:59 PST 2011


 svx/source/sdr/overlay/overlaytools.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 616db52655b65201e60f53deb3a063b0fdd7cc6b
Author: Tim Hardeck <thardeck at suse.com>
Date:   Wed Nov 23 18:33:54 2011 +0100

    Fixed wrong scaling of the anchor icons
    
    The size of the anchor icons, handles and similar were always one pixel
    too small which resulted in a blurry image.

diff --git a/svx/source/sdr/overlay/overlaytools.cxx b/svx/source/sdr/overlay/overlaytools.cxx
index cdaea55..f431ff2 100644
--- a/svx/source/sdr/overlay/overlaytools.cxx
+++ b/svx/source/sdr/overlay/overlaytools.cxx
@@ -72,8 +72,8 @@ namespace drawinglayer
                 // and unrotated, more like a marker
                 const double fLeft(((0.0 - getCenterX()) * getDiscreteUnit()) + getBasePosition().getX());
                 const double fTop(((0.0 - getCenterY()) * getDiscreteUnit()) + getBasePosition().getY());
-                const double fRight((((aBitmapSize.getWidth() - 1.0) - getCenterX()) * getDiscreteUnit()) + getBasePosition().getX());
-                const double fBottom((((aBitmapSize.getHeight() - 1.0) - getCenterY()) * getDiscreteUnit()) + getBasePosition().getY());
+                const double fRight(((aBitmapSize.getWidth() - getCenterX()) * getDiscreteUnit()) + getBasePosition().getX());
+                const double fBottom(((aBitmapSize.getHeight() - getCenterY()) * getDiscreteUnit()) + getBasePosition().getY());
 
                 // create a BitmapPrimitive2D using those positions
                 basegfx::B2DHomMatrix aTransform;


More information about the Libreoffice-commits mailing list