Code

sodipodi:docbase finally goes packing, along with a lauris comment
[inkscape.git] / src / verbs.cpp
index 25c805c3c30a62490d16c10183170dafbf77def0..cc01706eacd3ba47297a1fa7373c2066946eb313 100644 (file)
@@ -1257,7 +1257,11 @@ ObjectVerb::perform( SPAction *action, void *data, void *pdata )
     if (sel->isEmpty())
         return;
 
-    NR::Point const center(sel->bounds().midpoint());
+    NR::Maybe<NR::Rect> bbox = sel->bounds();
+    if (!bbox) {
+        return;
+    }
+    NR::Point const center(bbox->midpoint());
 
     switch (reinterpret_cast<std::size_t>(data)) {
         case SP_VERB_OBJECT_ROTATE_90_CW: