summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-07-15 18:39:02 +0200
committerDavid Tardon <dtardon@redhat.com>2015-07-15 18:39:02 +0200
commit75d144e106c82aeaa610be1279215b0a4d0b1c5b (patch)
treec002e5597bb1dbe53f31318848eca591a24b5837 /src/lib
parentf9286b5b5d183bbdb34a92e42d484992a3b3385e (diff)
afl: avoid null dereference
Change-Id: I34cd4745be84a77ba2a380f0821712b8f439ccbc
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/VSD6Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/VSD6Parser.cpp b/src/lib/VSD6Parser.cpp
index 35e152c..9e845eb 100644
--- a/src/lib/VSD6Parser.cpp
+++ b/src/lib/VSD6Parser.cpp
@@ -234,7 +234,7 @@ void libvisio::VSD6Parser::readFillAndShadow(librevenge::RVNGInputStream *input)
{
double shadowOffsetX = 0.0;
double shadowOffsetY = 0.0;
- if (m_isStencilStarted)
+ if (m_isStencilStarted && m_currentStencil)
{
VSD_DEBUG_MSG(("Found stencil fill\n"));
shadowOffsetX = m_currentStencil->m_shadowOffsetX;