diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2010-11-26 17:12:39 +0100 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2010-11-26 17:12:39 +0100 |
commit | 0360a0ad1602f795bedea54dbae554c5769b7e61 (patch) | |
tree | 4f24e67df266980f488b9c7cba5da779728a60b7 /vcl/source/gdi/outdev.cxx | |
parent | 8dc3743ca56382374183bec5cd1a11d53f3085b8 (diff) |
vcl118: #i111868# clean up MapModeVDev, reuse MapModeVDev
Diffstat (limited to 'vcl/source/gdi/outdev.cxx')
-rw-r--r-- | vcl/source/gdi/outdev.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx index 847a8d7a299a..26a831c7600c 100644 --- a/vcl/source/gdi/outdev.cxx +++ b/vcl/source/gdi/outdev.cxx @@ -3159,6 +3159,20 @@ void OutputDevice::DrawPolyLine( // ----------------------------------------------------------------------- +sal_uInt32 OutputDevice::GetGCStackDepth() const +{ + const ImplObjStack* pData = mpObjStack; + sal_uInt32 nDepth = 0; + while( pData ) + { + nDepth++; + pData = pData->mpPrev; + } + return nDepth; +} + +// ----------------------------------------------------------------------- + void OutputDevice::Push( USHORT nFlags ) { DBG_TRACE( "OutputDevice::Push()" ); |