summaryrefslogtreecommitdiffstats
path: root/src/sp-item-transform.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-03-17 19:00:45 +0000
committermental <mental@users.sourceforge.net>2007-03-17 19:00:45 +0000
commit70dcb712d89b98453c4ea6e4868c88af8d2887e4 (patch)
treec19680dd8b7c41260a6224b54f3e1712a1da08da /src/sp-item-transform.cpp
parentclean up rect mess a bit before start working on other stuff (diff)
downloadinkscape-70dcb712d89b98453c4ea6e4868c88af8d2887e4.tar.gz
inkscape-70dcb712d89b98453c4ea6e4868c88af8d2887e4.zip
re-introduce isEmpty tests
(bzr r2679)
Diffstat (limited to 'src/sp-item-transform.cpp')
-rw-r--r--src/sp-item-transform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-item-transform.cpp b/src/sp-item-transform.cpp
index 72a7c39e6..10eba6848 100644
--- a/src/sp-item-transform.cpp
+++ b/src/sp-item-transform.cpp
@@ -103,7 +103,7 @@ get_scale_transform_with_stroke (NR::Rect &bbox_param, gdouble strokewidth, bool
gdouble h1 = y1 - y0;
gdouble r0 = strokewidth;
- if (bbox.extent(NR::X) < 1e-06 || bbox.extent(NR::Y) < 1e-06) {
+ if (bbox.isEmpty()) {
NR::Matrix move = NR::Matrix(NR::translate(x0 - bbox.min()[NR::X], y0 - bbox.min()[NR::Y]));
return (move); // cannot scale from empty boxes at all, so only translate
}