Code

disabling rendering optimization for dashed strokes (until optimization is tweaked...
authorknutux <knutux@users.sourceforge.net>
Thu, 20 Apr 2006 09:26:52 +0000 (09:26 +0000)
committerknutux <knutux@users.sourceforge.net>
Thu, 20 Apr 2006 09:26:52 +0000 (09:26 +0000)
src/display/nr-arena-shape.cpp

index 4f8acca487f108a2a6a2a44610daeadaedd7e608..6368e149be8500fb6e618bb79825e4494e863d0b 100644 (file)
@@ -516,7 +516,7 @@ nr_arena_shape_update_stroke(NRArenaShape *shape,NRGC* gc, NRRectL *area)
             padded_area.x1 += (NR::ICoord)width;
             padded_area.y0 -= (NR::ICoord)width;
             padded_area.y1 += (NR::ICoord)width;
-            if (is_inner_area(padded_area, NR_ARENA_ITEM(shape)->bbox)) {
+            if ((style->stroke_dash.n_dash && NR_ARENA_ITEM(shape)->arena->rendermode != RENDERMODE_OUTLINE) || is_inner_area(padded_area, NR_ARENA_ITEM(shape)->bbox)) {
                 thePath->Convert((NR_ARENA_ITEM(shape)->arena->rendermode != RENDERMODE_OUTLINE) ? 1.0 : 4.0);
                 shape->cached_spartialy = false;
             }