[Libreoffice-commits] .: forms/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 20 07:42:45 PST 2012
forms/source/richtext/richtextcontrol.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 049afdad58b7b07698b6002659f075aa555688f3
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
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