summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-25 17:06:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-25 17:06:22 +0200
commit6ee8e0eb5c80e3d79d3d2eed7a4a9a577f5e18ba (patch)
treeac1f40ea8ba6cd429151538673d323dcc1711f6b
parentf5dc536eae7dc28e09112ab9dd69e55fae015ee8 (diff)
Fix OutputDevice::Pop
Change-Id: Iaaf19c01dc4ec10c72a66dac35ac64e37766d08e
-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();