From: buliabyak Date: Sun, 23 Mar 2008 04:11:25 +0000 (+0000) Subject: make sure we explicitly use geometric bbox for calculating blur margins X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=43a1d19c56879f438d64ab52860a1385fdad7e14;p=inkscape.git make sure we explicitly use geometric bbox for calculating blur margins --- diff --git a/src/ui/widget/object-composite-settings.cpp b/src/ui/widget/object-composite-settings.cpp index 3ab1255a2..1e277fa0d 100644 --- a/src/ui/widget/object-composite-settings.cpp +++ b/src/ui/widget/object-composite-settings.cpp @@ -20,6 +20,7 @@ #include "inkscape-stock.h" #include "selection.h" #include "style.h" +#include "sp-item.h" #include "svg/css-ostringstream.h" #include "verbs.h" #include "xml/repr.h" @@ -111,7 +112,7 @@ ObjectCompositeSettings::_blendBlurValueChanged() // FIXME: fix for GTK breakage, see comment in SelectedStyle::on_opacity_changed; here it results in crash 1580903 sp_canvas_force_full_redraw_after_interruptions(sp_desktop_canvas(desktop), 0); - NR::Maybe bbox = _subject->getBounds(); + NR::Maybe bbox = _subject->getBounds(SPItem::GEOMETRIC_BBOX); double radius; if (bbox) { double perimeter = bbox->extent(NR::X) + bbox->extent(NR::Y); @@ -258,7 +259,7 @@ ObjectCompositeSettings::_subjectChanged() { case QUERY_STYLE_SINGLE: case QUERY_STYLE_MULTIPLE_AVERAGED: case QUERY_STYLE_MULTIPLE_SAME: - NR::Maybe bbox = _subject->getBounds(); + NR::Maybe bbox = _subject->getBounds(SPItem::GEOMETRIC_BBOX); if (bbox) { double perimeter = bbox->extent(NR::X) + bbox->extent(NR::Y); _fe_cb.set_blur_sensitive(true);