From a82bc16403664f4f4ac87ddc50522cb0b7a8e2df Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 24 Oct 2006 02:15:23 +0000 Subject: [PATCH] fix crash: when closing a document, the selection we're passed as argument may be not the one of the active desktop, so use SP_ACTIVE_DESKTOP instead --- src/dialogs/object-properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs/object-properties.cpp b/src/dialogs/object-properties.cpp index 617e8a0d1..77d71b5fe 100644 --- a/src/dialogs/object-properties.cpp +++ b/src/dialogs/object-properties.cpp @@ -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 -- 2.30.2