diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-10-24 02:15:23 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-10-24 02:15:23 +0000 |
| commit | 4012518e86c7b4f0b8156e37315ca866496a88e9 (patch) | |
| tree | 738807d587228d4f610bd552ddb251817bdf47ae /src/dialogs/object-properties.cpp | |
| parent | Added callback function to allow shrinking of widgets (diff) | |
| download | inkscape-4012518e86c7b4f0b8156e37315ca866496a88e9.tar.gz inkscape-4012518e86c7b4f0b8156e37315ca866496a88e9.zip | |
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
(bzr r1851)
Diffstat (limited to 'src/dialogs/object-properties.cpp')
| -rw-r--r-- | src/dialogs/object-properties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
