From 58b0e69b7336a8a06c447cf786f73df903120e53 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Sun, 11 Mar 2007 19:57:07 +0000 Subject: Switch selection bounds and center to use NR::Maybe, addressing most of the recent bbox regressions. (bzr r2604) --- src/splivarot.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/splivarot.cpp') 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 selectionBbox = selection->bounds(); + if (!selectionBbox) { + return false; + } + gdouble selectionSize = L2(selectionBbox->dimensions()); gdouble simplifySize = selectionSize; -- cgit v1.2.3