Commit e8079d15 authored by William Skaggs's avatar William Skaggs
Browse files

Bill Skaggs <weskaggs@primate.ucdavis.edu>

	* plug-ins/common/newsprint.c: remove "optimization" that interacts
	badly with preview; fixes bug #161573.
parent 9018476c
2005-06-21 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/newsprint.c: remove "optimization" that interacts
badly with preview; fixes bug #161573.
2005-06-21 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/retinex.c: initialize memory before using.
......
......@@ -1860,16 +1860,12 @@ do { \
spotfn_list[rf].thresh = spot2thresh (rf, width);
thresh[0] = spotfn_list[rf].thresh;
/* optimisation: only use separate threshold matrices if the
* spot functions are actually different */
ASRT (gf);
if (!spotfn_list[gf].thresh)
spotfn_list[gf].thresh = spot2thresh (gf, width);
spotfn_list[gf].thresh = spot2thresh (gf, width);
thresh[1] = spotfn_list[gf].thresh;
ASRT (bf);
if (!spotfn_list[bf].thresh)
spotfn_list[bf].thresh = spot2thresh (bf, width);
spotfn_list[bf].thresh = spot2thresh (bf, width);
thresh[2] = spotfn_list[bf].thresh;
if (colourspace == CS_CMYK)
......@@ -1877,8 +1873,7 @@ do { \
rot[3] = DEG2RAD (pvals.gry_ang);
gf = pvals.gry_spotfn;
ASRT (gf);
if (!spotfn_list[gf].thresh)
spotfn_list[gf].thresh = spot2thresh (gf, width);
spotfn_list[gf].thresh = spot2thresh (gf, width);
thresh[3] = spotfn_list[gf].thresh;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment