Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Qt6: explicitly check shared pointer instead of converting to bool
Halla Rempt1e0cfca979ca
diff --git a/plugins/tools/tool_transform2/kis_liquify_paint_helper.cpp b/plugins/tools/tool_transform2/kis_liquify_paint_helper.cppindex 8a8b608f37..15b663c5fd 100644--- a/plugins/tools/tool_transform2/kis_liquify_paint_helper.cpp+++ b/plugins/tools/tool_transform2/kis_liquify_paint_helper.cpp@@ -126,7 +126,7 @@ bool KisLiquifyPaintHelper::endPaint(KoPointerEvent *event)void KisLiquifyPaintHelper::hoverPaint(KoPointerEvent *event){QPointF imagePoint = m_d->converter->documentToImage(event->pos());- KisPaintInformation pi = m_d->infoBuilder->hover(imagePoint, event, m_d->paintOp);+ KisPaintInformation pi = m_d->infoBuilder->hover(imagePoint, event, !m_d->paintOp.isNull());m_d->updatePreviousPaintInfo(pi);}