From: kiirala Date: Mon, 2 Jun 2008 16:39:50 +0000 (+0000) Subject: Fixed uninitialized data in rendering filter effects & colormatrix (bug 193936) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70208f40907f69dd0b8233669fe590a870d6c16d;p=inkscape.git Fixed uninitialized data in rendering filter effects & colormatrix (bug 193936) --- diff --git a/src/display/nr-filter-colormatrix.cpp b/src/display/nr-filter-colormatrix.cpp index 79c6177ab..1d73f14e1 100644 --- a/src/display/nr-filter-colormatrix.cpp +++ b/src/display/nr-filter-colormatrix.cpp @@ -50,7 +50,7 @@ int FilterColorMatrix::render(FilterSlot &slot, FilterUnits const &/*units*/) { nr_pixblock_setup_fast(in, NR_PIXBLOCK_MODE_R8G8B8A8N, original_in->area.x0, original_in->area.y0, original_in->area.x1, original_in->area.y1, - false); + true); nr_blit_pixblock_pixblock(in, original_in); free_in_on_exit = true; } diff --git a/src/display/nr-filter.cpp b/src/display/nr-filter.cpp index 7423bb7f3..62b3893c2 100644 --- a/src/display/nr-filter.cpp +++ b/src/display/nr-filter.cpp @@ -178,7 +178,7 @@ int Filter::render(NRArenaItem const *item, NRPixBlock *pb) NRPixBlock *in = new NRPixBlock; nr_pixblock_setup_fast(in, pb->mode, pb->area.x0, pb->area.y0, - pb->area.x1, pb->area.y1, false); + pb->area.x1, pb->area.y1, true); if (in->size != NR_PIXBLOCK_SIZE_TINY && in->data.px == NULL) { g_warning("NR::Filter::render: failed to reserve temporary buffer"); return 0;