summaryrefslogtreecommitdiff
path: root/forms/source/richtext
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-12-20 16:37:19 +0100
committerDavid Tardon <dtardon@redhat.com>2012-12-20 16:39:28 +0100
commit049afdad58b7b07698b6002659f075aa555688f3 (patch)
tree9f6f70911f052cb6d9d7b13e9751f838a8fb63ce /forms/source/richtext
parent10cad89df88b1b9a4bca85928319918f5bc79e2a (diff)
rhbz#782736 use right device for converting size
Change-Id: If433376df24a3646d80f30e1dfa45463653ea72b
Diffstat (limited to 'forms/source/richtext')
-rw-r--r--forms/source/richtext/richtextcontrol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx
index c7743c314e88..288dc5a93686 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 ...