Kaydet (Commit) 049afdad authored tarafından David Tardon's avatar David Tardon

rhbz#782736 use right device for converting size

Change-Id: If433376df24a3646d80f30e1dfa45463653ea72b
üst 10cad89d
......@@ -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 ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment