diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-05-12 17:41:12 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-05-12 17:41:12 +0000 |
| commit | 8be92f2c327b30cb3c2127d2b501fa50c8ac4cbf (patch) | |
| tree | 2337fd34ea77f7a5846c27e35300835449b1ebf7 /src | |
| parent | CSS2 and CSS3 text decoration rendering, most code from David Mathog. (diff) | |
| download | inkscape-8be92f2c327b30cb3c2127d2b501fa50c8ac4cbf.tar.gz inkscape-8be92f2c327b30cb3c2127d2b501fa50c8ac4cbf.zip | |
small logic improvement
(bzr r13341.1.8)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/drawing-text.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/display/drawing-text.cpp b/src/display/drawing-text.cpp index 366501fb0..05a2c3c2a 100644 --- a/src/display/drawing-text.cpp +++ b/src/display/drawing-text.cpp @@ -95,12 +95,10 @@ unsigned DrawingGlyphs::_updateItem(Geom::IntRect const &/*area*/, UpdateContext */ Geom::OptRect pb; - bool fallback = true; if(_drawable){ pb = bounds_exact_transformed(*_font->PathVector(_glyph), ctx.ctm); - if(pb) fallback = false; } - if(fallback){ + if(!pb){ // Fallback Geom::Rect pbigbox(Geom::Point(0.0, _asc*scale_bigbox*0.66),Geom::Point(_width*scale_bigbox, 0.0)); pb = pbigbox * ctx.ctm; } |
