diff --git a/src/desktop.cpp b/src/desktop.cpp
index 668d46b31cfbca8505ba3302202ed1c85df40517..9658f00b71e1a0b03a882c4e4b66018be69f7ec7 100644 (file)
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
NR::Rect d(NR::Point(0, 0),
NR::Point(sp_document_width(doc()), sp_document_height(doc())));
- if (d.dimensions()[NR::X] < 1.0 || d.dimensions()[NR::Y] < 1.0) {
+ if (d.isEmpty(1.0)) {
return;
}
{
NR::Maybe<NR::Rect> const d = selection->bounds();
- if ( !d || d->dimensions()[NR::X] < 0.1 || d->dimensions()[NR::Y] < 0.1) {
+ if ( !d || d->isEmpty(0.1) ) {
return;
}
/* Note that the second condition here indicates that
** there are no items in the drawing.
*/
- if ( !d || d->dimensions()[NR::X] < 1.0 || d->dimensions()[NR::Y] < 1.0 ) {
+ if ( !d || d->isEmpty(1.0) ) {
return;
}