summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/outdevstate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/outdev/outdevstate.cxx')
-rw-r--r--vcl/source/outdev/outdevstate.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx
index ccf92be1932d..a9ca52d9449b 100644
--- a/vcl/source/outdev/outdevstate.cxx
+++ b/vcl/source/outdev/outdevstate.cxx
@@ -225,6 +225,13 @@ sal_uInt32 OutputDevice::GetGCStackDepth() const
return maOutDevStateStack.size();
}
+void OutputDevice::ClearStack()
+{
+ sal_uInt32 nCount = GetGCStackDepth();
+ while( nCount-- )
+ Pop();
+}
+
void OutputDevice::EnableOutput( bool bEnable )
{
mbOutput = bEnable;