diff --git a/src/file.cpp b/src/file.cpp
index d5700bb6e47186ada7a6c6307d9781ce802ba5e9..71a3ddd6cc581191634e98a8ecf7f48a58d8796e 100644 (file)
--- a/src/file.cpp
+++ b/src/file.cpp
g_free(text);
g_free(safeUri);
return FALSE;
+ } catch (Inkscape::Extension::Output::save_cancelled &e) {
+ SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("Document not saved."));
+ return FALSE;
} catch (Inkscape::Extension::Output::no_overwrite &e) {
return sp_file_save_dialog(parentWindow, doc);
}
bool const saved_pref = prefs->getBool("/options/transform/pattern", true);
prefs->setBool("/options/transform/pattern", true);
sp_document_ensure_up_to_date(sp_desktop_document(desktop));
- boost::optional<Geom::Rect> sel_bbox = selection->bounds();
+ Geom::OptRect sel_bbox = selection->bounds();
if (sel_bbox) {
Geom::Point m( desktop->point() - sel_bbox->midpoint() );
sp_selection_move_relative(selection, m);