diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-11 21:41:42 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-11 21:41:42 +0000 |
| commit | 7146a6c31b8507c9dfba86d3e91fa8c42e955e06 (patch) | |
| tree | 8b2af16f2ed3611f9ac3ec26dfcd34694ed974ed /src/sp-item-transform.cpp | |
| parent | Eliminate remaining sources of empty NR::Rects (diff) | |
| download | inkscape-7146a6c31b8507c9dfba86d3e91fa8c42e955e06.tar.gz inkscape-7146a6c31b8507c9dfba86d3e91fa8c42e955e06.zip | |
ban empty rectangles entirely and remove isEmpty test
(bzr r2606)
Diffstat (limited to 'src/sp-item-transform.cpp')
| -rw-r--r-- | src/sp-item-transform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-item-transform.cpp b/src/sp-item-transform.cpp index 105a91b4c..72a7c39e6 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.isEmpty() || bbox.extent(NR::X) < 1e-06 || bbox.extent(NR::Y) < 1e-06) { + if (bbox.extent(NR::X) < 1e-06 || bbox.extent(NR::Y) < 1e-06) { 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 } |
