summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-05-12 17:41:12 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-05-12 17:41:12 +0000
commit8be92f2c327b30cb3c2127d2b501fa50c8ac4cbf (patch)
tree2337fd34ea77f7a5846c27e35300835449b1ebf7
parentCSS2 and CSS3 text decoration rendering, most code from David Mathog. (diff)
downloadinkscape-8be92f2c327b30cb3c2127d2b501fa50c8ac4cbf.tar.gz
inkscape-8be92f2c327b30cb3c2127d2b501fa50c8ac4cbf.zip
small logic improvement
(bzr r13341.1.8)
-rw-r--r--src/display/drawing-text.cpp4
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;
}