summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/object-composite-settings.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-03-23 04:11:25 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-03-23 04:11:25 +0000
commit987ea9211f7ef9a9c3bdc18e5a7e546a7e451771 (patch)
tree580b3d9a805b2eedff24af1573fe95d88c4d403c /src/ui/widget/object-composite-settings.cpp
parentTracking of live axes (diff)
downloadinkscape-987ea9211f7ef9a9c3bdc18e5a7e546a7e451771.tar.gz
inkscape-987ea9211f7ef9a9c3bdc18e5a7e546a7e451771.zip
make sure we explicitly use geometric bbox for calculating blur margins
(bzr r5173)
Diffstat (limited to 'src/ui/widget/object-composite-settings.cpp')
-rw-r--r--src/ui/widget/object-composite-settings.cpp5
1 files changed, 3 insertions, 2 deletions
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<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);