Code

simplify by using the new API
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 23 Oct 2006 01:45:26 +0000 (01:45 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 23 Oct 2006 01:45:26 +0000 (01:45 +0000)
src/dialogs/object-properties.cpp

index 07b329fb2264ba92bf1df61624447e62e17f8137..617e8a0d10d7106d45f28bb6ee7f57663ecb4926 100644 (file)
@@ -414,10 +414,7 @@ sp_fillstroke_blur_changed (GtkAdjustment *a, SPWidget *base)
         if (radius == 0.0) {
             remove_filter (item, true);
         } else {
-            NR::Rect const r = sp_item_bbox_desktop(item);
-            double width = r.extent(NR::X);
-            double height = r.extent(NR::Y);
-            SPFilter *constructed = new_filter_gaussian_blur(document, radius, width, height); 
+            SPFilter *constructed = new_filter_gaussian_blur_from_item(document, item, radius); 
             sp_style_set_property_url (SP_OBJECT(item), "filter", SP_OBJECT(constructed), false);
         }
         //request update