From kde-commits Fri Oct 31 21:17:16 2003 From: Scott Wheeler Date: Fri, 31 Oct 2003 21:17:16 +0000 To: kde-commits Subject: kdegraphics/ksvg X-MARC-Message: https://marc.info/?l=kde-commits&m=106764811402528 CVS commit by wheeler: This is a little better than hardcoding it and this is where the STL thing that works with 3.3 was getting the value from anyway. M +3 -1 impl/SVGMaskElementImpl.cc 1.29 M +5 -3 plugin/backends/libart/LibartCanvasItems.cpp 1.98 --- kdegraphics/ksvg/impl/SVGMaskElementImpl.cc #1.28:1.29 @@ -19,4 +19,6 @@ */ +#include + #include #include @@ -341,5 +343,5 @@ SVGMaskElementImpl::Mask SVGMaskElementI QByteArray maskData(imageWidth * imageHeight); - const double epsilon = 1e-6; + const double epsilon = DBL_EPSILON; // Convert the rgba image into an 8-bit mask, according to the specs. --- kdegraphics/ksvg/plugin/backends/libart/LibartCanvasItems.cpp #1.97:1.98 @@ -19,4 +19,6 @@ */ +#include + #include #include @@ -1945,5 +1947,5 @@ ArtRender *LibartPaintServer::createRend void LibartGradient::parseGradientStops(SVGGradientElementImpl *gradient) { - const double epsilon = 1e-6; + const double epsilon = DBL_EPSILON; for(DOM::Node node = gradient->firstChild(); !node.isNull(); node = node.nextSibling()) @@ -2064,5 +2066,5 @@ void LibartLinearGradient::render(KSVGCa matrix = SVGSVGElementImpl::createSVGMatrix(); - const double epsilon = 1e-6; + const double epsilon = DBL_EPSILON; if(m_linear->gradientUnits()->baseVal() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) @@ -2211,5 +2213,5 @@ void LibartRadialGradient::render(KSVGCa _fy = m_radial->fy()->baseVal()->value(); - const double epsilon = 1e-6; + const double epsilon = DBL_EPSILON; if(m_radial->gradientUnits()->baseVal() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)