Code

Fixed uninitialized data in rendering filter effects & colormatrix (bug 193936)
authorkiirala <kiirala@users.sourceforge.net>
Mon, 2 Jun 2008 16:39:50 +0000 (16:39 +0000)
committerkiirala <kiirala@users.sourceforge.net>
Mon, 2 Jun 2008 16:39:50 +0000 (16:39 +0000)
src/display/nr-filter-colormatrix.cpp
src/display/nr-filter.cpp

index 79c6177ab96d45af698547182d2dd985c3869ed9..1d73f14e1906ec92ff560d18bba0d8fec95cdc8a 100644 (file)
@@ -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;
     }
index 7423bb7f3de5656f2e3ec43b371eb8bc40d28eec..62b3893c2297e726cd7bc5b805962c7e441daca8 100644 (file)
@@ -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;