Paste P188

Masterwork From Distant Lands
ActivePublic

Authored by dkazakov on Apr 4 2018, 9:56 AM.
diff --git a/libs/global/kis_algebra_2d.cpp b/libs/global/kis_algebra_2d.cpp
index 417e860..bb46e43 100644
--- a/libs/global/kis_algebra_2d.cpp
+++ b/libs/global/kis_algebra_2d.cpp
@@ -401,7 +401,12 @@ QVector<QPointF> intersectTwoCircles(const QPointF &center1, qreal r1,
pow2(x) - pow2(r2),
&y1, &y2);
- KIS_SAFE_ASSERT_RECOVER(result > 0) { return points; }
+ KIS_SAFE_ASSERT_RECOVER(result > 0) {
+ qDebug() << ppVar(center1) << ppVar(center2);
+ qDebug() << ppVar(r1) << ppVar(r2);
+
+ return points;
+ }
if (result == 1) {
points << QPointF(x, y1);
@@ -429,7 +434,13 @@ QVector<QPointF> intersectTwoCircles(const QPointF &center1, qreal r1,
pow2(C) - pow2(r1),
&x1, &x2);
- KIS_SAFE_ASSERT_RECOVER(result > 0) { return points; }
+ KIS_SAFE_ASSERT_RECOVER(result > 0) {
+ qDebug() << ppVar(center1) << ppVar(center2);
+ qDebug() << ppVar(r1) << ppVar(r2);
+ qDebug() << ppVar(A) << ppVar(C);
+
+ return points;
+ }
if (result == 1) {
points << QPointF(x1, C - x1 * A);
dkazakov edited the content of this paste. (Show Details)Apr 4 2018, 9:56 AM
dkazakov changed the title of this paste from untitled to Masterwork From Distant Lands.
dkazakov updated the paste's language from autodetect to autodetect.