diff options
| author | Ralf Stephan <ralf@ark.in-berlin.de> | 2006-05-19 15:31:05 +0000 |
|---|---|---|
| committer | rwst <rwst@users.sourceforge.net> | 2006-05-19 15:31:05 +0000 |
| commit | 77a241abe27062e5bdf6fb83aa07ef3639522eb8 (patch) | |
| tree | 77bca52ba271174de0bf29323380c82b3c43661e /src | |
| parent | Selection and event handling cleanup. Added deeper display. (diff) | |
| download | inkscape-77a241abe27062e5bdf6fb83aa07ef3639522eb8.tar.gz inkscape-77a241abe27062e5bdf6fb83aa07ef3639522eb8.zip | |
init matrix variable, removes compiler warnings
(bzr r893)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/nr-arena-shape.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <libnr/nr-path.h> #include <libnr/nr-pixops.h> #include <libnr/nr-matrix-ops.h> +#include <libnr/nr-matrix-fns.h> #include <libnr/nr-blit.h> #include <livarot/Path.h> #include <livarot/float-line.h> @@ -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 ) { |
