diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2007-03-13 20:55:13 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2007-03-13 20:55:13 +0000 |
| commit | b39a1674b0681ee0fb304f445fd6a05f4d47cffa (patch) | |
| tree | b4500bf3a84fd0a036ba8a4c63e03e993bd10f96 /src | |
| parent | tweak to compile on linux (diff) | |
| download | inkscape-b39a1674b0681ee0fb304f445fd6a05f4d47cffa.tar.gz inkscape-b39a1674b0681ee0fb304f445fd6a05f4d47cffa.zip | |
Add null checks.
(bzr r2634)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/internal/odf.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index 8645205f2..3ce44ee84 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -15,7 +15,7 @@ * Authors: * Bob Jamison * - * Copyright (C) 2006 Bob Jamison + * Copyright (C) 2006, 2007 Bob Jamison * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -1650,8 +1650,14 @@ bool OdfOutput::processStyle(Writer &outs, SPItem *item, bool OdfOutput::processGradient(Writer &outs, SPItem *item, const Glib::ustring &id, NR::Matrix &tf) { + if (!item) + return false; + SPStyle *style = item->style; + if (!style) + return false; + //## Gradient. Look in writeStyle() below to see what info // we need to read into GradientInfo. if (!SP_IS_GRADIENT(SP_STYLE_FILL_SERVER(style))) |
