From 0d6b11f64a38b998cdb42c9632358575daa1ac0a Mon Sep 17 00:00:00 2001 From: kiirala Date: Mon, 19 Jan 2009 13:45:47 +0000 Subject: [PATCH] Rounding errors in feComposite: patch by Preben S (bug 318134) --- src/display/nr-filter-colormatrix.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/display/nr-filter-colormatrix.cpp b/src/display/nr-filter-colormatrix.cpp index e5dc3fb20..21e659a6a 100644 --- a/src/display/nr-filter-colormatrix.cpp +++ b/src/display/nr-filter-colormatrix.cpp @@ -80,10 +80,10 @@ int FilterColorMatrix::render(FilterSlot &slot, FilterUnits const &/*units*/) { g_warning("ColorMatrix: values parameter error. Wrong size: %i.", static_cast(values.size())); return -1; } - double a04 = 255*values[4] + .5; - double a14 = 255*values[9] + .5; - double a24 = 255*values[14] + .5; - double a34 = 255*values[19] + .5; + double a04 = 255*values[4]; + double a14 = 255*values[9]; + double a24 = 255*values[14]; + double a34 = 255*values[19]; for (x=x0;x