index b2ba56f620e53ea6173ccccf2dda36b5022a24de..1fe70b896cdfd351e22e0f8d9ed6ac1290376f04 100644 (file)
}
NR::Maybe<NR::Rect> current = selection->bounds();
- if ( !current || current->extent(NR::X) < 1e-6 || current->extent(NR::Y) < 1e-6 ) {
+ if ( !current || current->isEmpty() ) {
return;
}
SPItem *item = SP_ITEM(l->data);
NR::Maybe<NR::Rect> current = sp_item_bbox_desktop(item);
- if ( !current || current->extent(NR::X) < 1e-6 || current->extent(NR::Y) < 1e-6 ) {
+ if ( !current || current->isEmpty() ) {
continue;
}
return;
NR::Maybe<NR::Rect> const bbox(selection->bounds());
- if ( !bbox ) {
+ if ( !bbox || bbox->isEmpty() ) {
return;
}
@@ -1550,7 +1550,7 @@ void sp_selection_scale_relative(Inkscape::Selection *selection, NR::Point const
NR::Maybe<NR::Rect> const bbox(selection->bounds());
- if ( !bbox ) {
+ if ( !bbox || bbox->isEmpty() ) {
return;
}
sp_document_ensure_up_to_date(document);
NR::Maybe<NR::Rect> r = selection->bounds();
- if ( !r ) {
+ if ( !r || r->isEmpty() ) {
return;
}