diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2007-08-16 16:50:59 +0000 |
|---|---|---|
| committer | jucablues <jucablues@users.sourceforge.net> | 2007-08-16 16:50:59 +0000 |
| commit | a1554bad2efd40c185096ce81c4ad786d43a1e16 (patch) | |
| tree | 08ea1b60a783d29b7a2a467c155b41b641003e20 /src | |
| parent | Remember last used style for single 3D box faces (also fixes bug with wrongly... (diff) | |
| download | inkscape-a1554bad2efd40c185096ce81c4ad786d43a1e16.tar.gz inkscape-a1554bad2efd40c185096ce81c4ad786d43a1e16.zip | |
avoid crash described in bug report [ 1762588 ] crash: feOffset with
input StrokePaint or FillPaint
(bzr r3482)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/nr-filter-offset.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/display/nr-filter-offset.cpp b/src/display/nr-filter-offset.cpp index 3b9c051e2..4facd9436 100644 --- a/src/display/nr-filter-offset.cpp +++ b/src/display/nr-filter-offset.cpp @@ -35,6 +35,12 @@ int FilterOffset::render(FilterSlot &slot, Matrix const &trans) { NRPixBlock *in = slot.get(_input); NRPixBlock *out = new NRPixBlock; + // Bail out if source image is missing + if (!in) { + g_warning("Missing source image for feOffset (in=%d)", _input); + return 1; + } + Point offset(dx, dy); offset *= trans; offset[X] -= trans[4]; |
