diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-10 20:54:38 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-10 20:54:38 +0000 |
| commit | a99764de718f7331615d3f9449e10a56dee62fb6 (patch) | |
| tree | d60bc8389777a4384b8c931867a93c6491fffee5 /src/filter-chemistry.cpp | |
| parent | fix setting knot->pos for node handles, but remove coords updating - now done... (diff) | |
| download | inkscape-a99764de718f7331615d3f9449e10a56dee62fb6.tar.gz inkscape-a99764de718f7331615d3f9449e10a56dee62fb6.zip | |
Merge further bbox work
(bzr r2596)
Diffstat (limited to 'src/filter-chemistry.cpp')
| -rw-r--r-- | src/filter-chemistry.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/filter-chemistry.cpp b/src/filter-chemistry.cpp index 1a26b10ce..164a6594a 100644 --- a/src/filter-chemistry.cpp +++ b/src/filter-chemistry.cpp @@ -96,9 +96,16 @@ new_filter_gaussian_blur (SPDocument *document, gdouble radius, double expansion SPFilter * new_filter_gaussian_blur_from_item (SPDocument *document, SPItem *item, gdouble radius) { - NR::Rect const r = sp_item_bbox_desktop(item); - double width = r.extent(NR::X); - double height = r.extent(NR::Y); + NR::Maybe<NR::Rect> const r = sp_item_bbox_desktop(item); + + double width; + double height; + if (r) { + width = r->extent(NR::X); + height= r->extent(NR::Y); + } else { + width = height = 0; + } NR::Matrix i2d = sp_item_i2d_affine (item); |
