opnsense-ports/graphics/pencil/files/patch-src-graphics-vector-beziercurve.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

15 lines
884 B
C++

--- src/graphics/vector/beziercurve.cpp.orig 2013-06-26 10:46:07.000000000 +0200
+++ src/graphics/vector/beziercurve.cpp 2013-06-26 10:40:02.000000000 +0200
@@ -700,9 +700,9 @@
R1.setTopLeft(P1); R1.setBottomRight(Q1);
R2.setTopLeft(P2); R2.setBottomRight(Q2);
- //QPointF intersectionPoint = QPointF(50.0, 50.0); // bogus point
- //QPointF* intersection = &intersectionPoint;
- QPointF* cubicIntersection = &QPointF(50.0, 50.0); // bogus point
+ QPointF tmpIntersectionPoint = QPointF(50.0, 50.0); // bogus point
+ QPointF* cubicIntersection = &tmpIntersectionPoint;
+ //QPointF* cubicIntersection = &QPointF(50.0, 50.0); // bogus point
if( R1.intersects(R2) || L2.intersect(L1, cubicIntersection) == QLineF::BoundedIntersection ) {
//if(L2.intersect(L1, intersection) == QLineF::BoundedIntersection) {
//qDebug() << " FOUND rectangle intersection ";