Code

make sure we explicitly use geometric bbox for calculating blur margins
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 23 Mar 2008 04:11:25 +0000 (04:11 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 23 Mar 2008 04:11:25 +0000 (04:11 +0000)
src/ui/widget/object-composite-settings.cpp

index 3ab1255a20cc3376b03c967bba2b82c54fc71745..1e277fa0dcc6cfdfbde4395aa1453bcb2d8f23c6 100644 (file)
@@ -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<NR::Rect> bbox = _subject->getBounds();
+    NR::Maybe<NR::Rect> 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<NR::Rect> bbox = _subject->getBounds();
+                NR::Maybe<NR::Rect> bbox = _subject->getBounds(SPItem::GEOMETRIC_BBOX);
                 if (bbox) {
                     double perimeter = bbox->extent(NR::X) + bbox->extent(NR::Y);
                     _fe_cb.set_blur_sensitive(true);