From: buliabyak Date: Tue, 24 Oct 2006 02:15:23 +0000 (+0000) Subject: fix crash: when closing a document, the selection we're passed as argument may be... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a82bc16403664f4f4ac87ddc50522cb0b7a8e2df;p=inkscape.git 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 --- 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