basegfx/source/polygon/b2dpolygoncutandtouch.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8fae55c7d3fead6ce18556d5ccaa0958b7cfed91 Author: David Tardon <dtar...@redhat.com> Date: Mon Jun 23 17:11:30 2014 +0200 fdo#79615 create clipping polygon correctly Change-Id: I758b6bc8da33a20a0807da171120a8f84214dcfd diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx index 37fa50c..927af88 100644 --- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx +++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx @@ -247,7 +247,7 @@ namespace basegfx const double fOne(1.0); fCut = (aVecB.getY() * (rCurrB.getX() - rCurrA.getX()) + aVecB.getX() * (rCurrA.getY() - rCurrB.getY())) / fCut; - if(fTools::more(fCut, fZero) && fTools::less(fCut, fOne)) + if(fTools::moreOrEqual(fCut, fZero) && fTools::lessOrEqual(fCut, fOne)) { // it's a candidate, but also need to test parameter value of cut on line 2 double fCut2; @@ -262,7 +262,7 @@ namespace basegfx fCut2 = (rCurrA.getY() + (fCut * aVecA.getY()) - rCurrB.getY()) / aVecB.getY(); } - if(fTools::more(fCut2, fZero) && fTools::less(fCut2, fOne)) + if(fTools::moreOrEqual(fCut2, fZero) && fTools::lessOrEqual(fCut2, fOne)) { // cut is in range, add point. Two edges can have only one cut, but // add a cut point to each list. The lists may be the same for _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits