summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-04-04 15:57:51 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-04-14 12:31:52 +0200
commit745ef97de4708b215ccb47242c89496ed59af072 (patch)
treeded2413d0fbe18319f39e1dd10edc59202acadc3
parentc03800435eaa12a7957450a1b1223a6753dc8fa3 (diff)
FS_DEBUG is never defined
-rw-r--r--vcl/source/control/ctrl.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 6c9c3bb489d4..331bb0b2aa34 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -456,18 +456,6 @@ void Control::ImplInitSettings( const bool _bFont, const bool _bForeground )
void Control::DrawControlText( OutputDevice& _rTargetDevice, Rectangle& _io_rRect, const OUString& _rStr,
sal_uInt16 _nStyle, MetricVector* _pVector, OUString* _pDisplayText ) const
{
-#ifdef FS_DEBUG
- if ( !_pVector )
- {
- static MetricVector aCharRects;
- static OUString sDisplayText;
- aCharRects.clear();
- sDisplayText = OUString();
- _pVector = &aCharRects;
- _pDisplayText = &sDisplayText;
- }
-#endif
-
if ( !mpControlData->mpReferenceDevice || ( mpControlData->mpReferenceDevice == &_rTargetDevice ) )
{
_io_rRect = _rTargetDevice.GetTextRect( _io_rRect, _rStr, _nStyle );
@@ -478,20 +466,6 @@ void Control::DrawControlText( OutputDevice& _rTargetDevice, Rectangle& _io_rRec
ControlTextRenderer aRenderer( *this, _rTargetDevice, *mpControlData->mpReferenceDevice );
_io_rRect = aRenderer.DrawText( _io_rRect, _rStr, _nStyle, _pVector, _pDisplayText );
}
-
-#ifdef FS_DEBUG
- _rTargetDevice.Push( PUSH_LINECOLOR | PUSH_FILLCOLOR );
- _rTargetDevice.SetLineColor( COL_LIGHTRED );
- _rTargetDevice.SetFillColor();
- for ( MetricVector::const_iterator cr = _pVector->begin();
- cr != _pVector->end();
- ++cr
- )
- {
- _rTargetDevice.DrawRect( *cr );
- }
- _rTargetDevice.Pop();
-#endif
}
Font