diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-17 19:00:45 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-17 19:00:45 +0000 |
| commit | 70dcb712d89b98453c4ea6e4868c88af8d2887e4 (patch) | |
| tree | c19680dd8b7c41260a6224b54f3e1712a1da08da /src/widgets/select-toolbar.cpp | |
| parent | clean up rect mess a bit before start working on other stuff (diff) | |
| download | inkscape-70dcb712d89b98453c4ea6e4868c88af8d2887e4.tar.gz inkscape-70dcb712d89b98453c4ea6e4868c88af8d2887e4.zip | |
re-introduce isEmpty tests
(bzr r2679)
Diffstat (limited to 'src/widgets/select-toolbar.cpp')
| -rw-r--r-- | src/widgets/select-toolbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/select-toolbar.cpp b/src/widgets/select-toolbar.cpp index fce5ff9b9..0d64409cc 100644 --- a/src/widgets/select-toolbar.cpp +++ b/src/widgets/select-toolbar.cpp @@ -59,7 +59,7 @@ sp_selection_layout_widget_update(SPWidget *spw, Inkscape::Selection *sel) using NR::Y; if ( sel && !sel->isEmpty() ) { NR::Maybe<NR::Rect> const bbox(sel->bounds()); - if ( bbox && ( bbox->extent(X) > 1e-6 || bbox->extent(Y) > 1e-6 ) ) { + if ( bbox && !bbox->isEmpty() ) { GtkWidget *us = (GtkWidget *) gtk_object_get_data(GTK_OBJECT(spw), "units"); SPUnit const &unit = *sp_unit_selector_get_unit(SP_UNIT_SELECTOR(us)); @@ -141,7 +141,7 @@ sp_object_layout_any_value_changed(GtkAdjustment *adj, SPWidget *spw) sp_document_ensure_up_to_date (document); NR::Maybe<NR::Rect> bbox = selection->bounds(); - if ( !bbox || bbox->extent(NR::X) < 1e-6 || bbox->extent(NR::Y) < 1e-6 ) { + if ( !bbox || bbox->isEmpty() ) { return; } |
