From: rwst Date: Fri, 19 May 2006 15:31:05 +0000 (+0000) Subject: init matrix variable, removes compiler warnings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c51988f347a9a11ea597fee3d5f56a42f4c0dd7b;p=inkscape.git init matrix variable, removes compiler warnings --- diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index 8d5a48be8..ae59605f2 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -390,7 +391,7 @@ nr_arena_shape_update_fill(NRArenaShape *shape, NRGC *gc, NRRectL *area, bool fo if ((shape->_fill.paint.type() != NRArenaShape::Paint::NONE || force_shape) && ((shape->curve->end > 2) || (SP_CURVE_BPATH(shape->curve)[1].code == NR_CURVETO)) ) { if (TRUE || !shape->fill_shp) { - NR::Matrix cached_to_new; + NR::Matrix cached_to_new = NR::identity(); int isometry = 0; if ( shape->cached_fill ) { if (shape->cached_fctm == gc->transform) { @@ -486,7 +487,7 @@ nr_arena_shape_update_stroke(NRArenaShape *shape,NRGC* gc, NRRectL *area) if (NR_ARENA_ITEM(shape)->arena->rendermode == RENDERMODE_OUTLINE) width = 0.5; // 1 pixel wide, independent of zoom - NR::Matrix cached_to_new; + NR::Matrix cached_to_new = NR::identity(); int isometry = 0; if ( shape->cached_stroke ) {