From 049afdad58b7b07698b6002659f075aa555688f3 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 20 Dec 2012 16:37:19 +0100 Subject: rhbz#782736 use right device for converting size Change-Id: If433376df24a3646d80f30e1dfa45463653ea72b --- forms/source/richtext/richtextcontrol.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forms/source/richtext') 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 ... -- cgit