diff options
Diffstat (limited to 'src/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp index 25c805c3c..cc01706ea 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -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: |
