summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2009-10-27 14:15:36 +0000
committerFrank Schönheit <fs@openoffice.org>2009-10-27 14:15:36 +0000
commit53c9c396125833bbfce4aa376637b96239826cc7 (patch)
tree75a11f934dd0a939bc185be5716542467e1b27d6 /vcl
parent7bda1112bb57fb92a44bd22023396ec0cee3825f (diff)
#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
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/ctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 521d3d6844d7..1800327df33c 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -563,7 +563,7 @@ void Control::DrawControlText( OutputDevice& _rTargetDevice, Rectangle& _io_rRec
}
#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 );