Code

fix bug: stroke width was not changed when switching to outline and back
[inkscape.git] / src / display / nr-arena-shape.h
index cd72013f6d2cab12e063309addcb84f01bc8e148..782ae127a0acd019ae562205ea68ef9e72b41ba9 100644 (file)
@@ -122,6 +122,8 @@ struct NRArenaShape : public NRArenaItem {
        // the 2 cached polygons, for rasterizations uses
        Shape *fill_shp;
        Shape *stroke_shp;
+       // the stroke width of stroke_shp, to detect when it changes (on normal/outline switching) and rebuild
+       float cached_width; 
        // delayed_shp=true means the *_shp polygons are not computed yet
        // they'll be computed on demand in *_render(), *_pick() or *_clip()
        // the goal is to not uncross polygons that are outside the viewing region