diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index cf07fba16b84db6b4ca11007eaee96dc355df654..f5f0a6481fa8e159c493b2674f1840ec9d83e8d5 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
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;