[Libreoffice-commits] .: Branch 'libreoffice-4-0' - forms/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Dec 20 21:55:14 PST 2012


 forms/source/richtext/richtextcontrol.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 028fb7162b602d7cdcabac016bb54a7d14960fc7
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Dec 20 16:37:19 2012 +0100

    rhbz#782736 use right device for converting size
    
    Change-Id: If433376df24a3646d80f30e1dfa45463653ea72b
    (cherry picked from commit 049afdad58b7b07698b6002659f075aa555688f3)
    
    Signed-off-by: David Tardon <dtardon at redhat.com>

diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx
index c7743c3..288dc5a 100644
--- a/forms/source/richtext/richtextcontrol.cxx
+++ b/forms/source/richtext/richtextcontrol.cxx
@@ -401,7 +401,7 @@ namespace frm
         ::Size aSize = pControl->GetSizePixel();
         const MapUnit eTargetUnit = pTargetDevice->GetMapMode().GetMapUnit();
         if ( eTargetUnit != MAP_PIXEL )
-            aSize = pControl->PixelToLogic( aSize, eTargetUnit );
+            aSize = pTargetDevice->PixelToLogic( aSize );
 
         ::Point aPos( _nX, _nY );
         // the XView::draw API talks about pixels, always ...


More information about the Libreoffice-commits mailing list