Paste P350

Masterwork From Distant Lands
ActivePublic

Authored by dkazakov on Mar 20 2019, 1:36 PM.
diff --git a/libs/image/kis_marker_painter.cpp b/libs/image/kis_marker_painter.cpp
index ff2f756..a38d234 100644
--- a/libs/image/kis_marker_painter.cpp
+++ b/libs/image/kis_marker_painter.cpp
@@ -60,9 +60,14 @@ void KisMarkerPainter::fillHalfBrushDiff(const QPointF &p1, const QPointF &p2, c
KisAlgebra2D::RightHalfPlane plane2(p2, p3);
KisAlgebra2D::OuterCircle outer(center, radius);
+ const QRectF originalRect = boundRect;
+
boundRect = KisAlgebra2D::cutOffRect(boundRect, plane1);
boundRect = KisAlgebra2D::cutOffRect(boundRect, plane2);
+ ENTER_FUNCTION() << boundRect.isEmpty() << ppVar(boundRect) << ppVar(originalRect);
+ ENTER_FUNCTION() << ppVar(p1) << ppVar(p2) << ppVar(p3);
+
KisSequentialIterator it(m_d->device, boundRect.toAlignedRect());
while (it.nextPixel()) {
QPoint pt(it.x(), it.y());
@@ -126,6 +131,9 @@ void KisMarkerPainter::fillCirclesDiff(const QPointF &c1, qreal r1,
{
QVector<QPointF> n = KisAlgebra2D::intersectTwoCircles(c1, r1, c2, r2);
+ ENTER_FUNCTION() << c1 << r1 << c2 << r2 << n;
+
+
if (n.size() < 2) {
fillFullCircle(c2, r2);
} else {
dkazakov edited the content of this paste. (Show Details)Mar 20 2019, 1:36 PM
dkazakov changed the title of this paste from untitled to Masterwork From Distant Lands.