CVS commit by page: GCC < 3.0 has no M +2 -1 impl/SVGMaskElementImpl.cc 1.28 M +3 -5 plugin/backends/libart/LibartCanvasItems.cpp 1.97 --- kdegraphics/ksvg/impl/SVGMaskElementImpl.cc #1.27:1.28 @@ -341,4 +341,5 @@ SVGMaskElementImpl::Mask SVGMaskElementI QByteArray maskData(imageWidth * imageHeight); + const double epsilon = 1e-6; // Convert the rgba image into an 8-bit mask, according to the specs. @@ -360,5 +361,5 @@ SVGMaskElementImpl::Mask SVGMaskElementI // Remove pre-multiplication by alpha. - if(a > 0) + if(a > epsilon) { r /= a; --- kdegraphics/ksvg/plugin/backends/libart/LibartCanvasItems.cpp #1.96:1.97 @@ -19,6 +19,4 @@ */ -#include - #include #include @@ -1947,5 +1945,5 @@ ArtRender *LibartPaintServer::createRend void LibartGradient::parseGradientStops(SVGGradientElementImpl *gradient) { - const double epsilon = std::numeric_limits::epsilon(); + const double epsilon = 1e-6; for(DOM::Node node = gradient->firstChild(); !node.isNull(); node = node.nextSibling()) @@ -2066,5 +2064,5 @@ void LibartLinearGradient::render(KSVGCa matrix = SVGSVGElementImpl::createSVGMatrix(); - const double epsilon = std::numeric_limits::epsilon(); + const double epsilon = 1e-6; if(m_linear->gradientUnits()->baseVal() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) @@ -2213,5 +2211,5 @@ void LibartRadialGradient::render(KSVGCa _fy = m_radial->fy()->baseVal()->value(); - const double epsilon = std::numeric_limits::epsilon(); + const double epsilon = 1e-6; if(m_radial->gradientUnits()->baseVal() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)