summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/outdev/outdev.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index 270f4b3cc3a1..3a9c3c11efad 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -347,7 +347,6 @@ void OutputDevice::Pop()
mpMetaFile->AddAction( new MetaPopAction() );
GDIMetaFile* pOldMetaFile = mpMetaFile;
- OutDevState* pState = new OutDevState;
mpMetaFile = NULL;
if ( mpOutDevStateStack->empty() )
@@ -355,6 +354,7 @@ void OutputDevice::Pop()
SAL_WARN( "vcl.gdi", "OutputDevice::Pop() without OutputDevice::Push()" );
return;
}
+ OutDevState* pState = mpOutDevStateStack->top();
if( mpAlphaVDev )
mpAlphaVDev->Pop();