Code

fix crash: when closing a document, the selection we're passed as argument may be...
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 24 Oct 2006 02:15:23 +0000 (02:15 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 24 Oct 2006 02:15:23 +0000 (02:15 +0000)
src/dialogs/object-properties.cpp

index 617e8a0d10d7106d45f28bb6ee7f57663ecb4926..77d71b5fe5839f100bd4d61a0962138fbf0b4bc9 100644 (file)
@@ -337,7 +337,7 @@ sp_fillstroke_selection_changed ( Inkscape::Application *inkscape,
         case QUERY_STYLE_SINGLE:
         case QUERY_STYLE_MULTIPLE_AVERAGED:
         case QUERY_STYLE_MULTIPLE_SAME: 
-            NR::Rect bbox = selection->bounds();
+            NR::Rect bbox = sp_desktop_selection(SP_ACTIVE_DESKTOP)->bounds();
             double perimeter = bbox.extent(NR::X) + bbox.extent(NR::Y);
             gtk_widget_set_sensitive (b, TRUE);
             //update blur widget value