summaryrefslogtreecommitdiff
path: root/filter/source/svg/svgwriter.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/svg/svgwriter.hxx')
-rw-r--r--filter/source/svg/svgwriter.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx
index 0b6048e7fb18..b4fe4ae06b5f 100644
--- a/filter/source/svg/svgwriter.hxx
+++ b/filter/source/svg/svgwriter.hxx
@@ -186,9 +186,12 @@ private:
}
void ImplReleaseContext()
{
- delete maContextStack.top();
- maContextStack.pop();
- mpContext = maContextStack.top();
+ if (!maContextStack.empty())
+ {
+ delete maContextStack.top();
+ maContextStack.pop();
+ }
+ mpContext = (maContextStack.empty() ? NULL : maContextStack.top());
}
long ImplMap( sal_Int32 nVal ) const;