summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index cf07fba16..f5f0a6481 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -1555,8 +1555,11 @@ sp_selected_path_simplify_items(SPDesktop *desktop,
bool didSomething = false;
- NR::Rect selectionBbox = selection->bounds();
- gdouble selectionSize = L2(selectionBbox.dimensions());
+ NR::Maybe<NR::Rect> selectionBbox = selection->bounds();
+ if (!selectionBbox) {
+ return false;
+ }
+ gdouble selectionSize = L2(selectionBbox->dimensions());
gdouble simplifySize = selectionSize;