Commits

fs  committed 139da49

#i105717# draw without reference device if the target device equals the reference device. This catches the case where the Writer sets a PIXEL-based ref device, and draws onto it - the usual 'draw using ref device' code doesn't allow for PIXELs

  • Participants
  • Parent commits cc71289

Comments (0)

Files changed (1)

File vcl/source/control/ctrl.cxx

     }
 #endif
 
-    if ( !mpControlData->mpReferenceDevice )
+    if ( !mpControlData->mpReferenceDevice || ( mpControlData->mpReferenceDevice == &_rTargetDevice ) )
     {
         _io_rRect = _rTargetDevice.GetTextRect( _io_rRect, _rStr, _nStyle );
         _rTargetDevice.DrawText( _io_rRect, _rStr, _nStyle, _pVector, _pDisplayText );