Skip to content

armgit / krita

Public Imported from GitHub
0

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 whether the shared point is null

Halla Rempt1d40421d5074
diff --git a/libs/image/kis_strokes_queue.cpp b/libs/image/kis_strokes_queue.cpp
index 89c5c1e4c7..0433a3c897 100644
--- a/libs/image/kis_strokes_queue.cpp
+++ b/libs/image/kis_strokes_queue.cpp
@@ -397,7 +397,7 @@ bool KisStrokesQueue::cancelStroke(KisStrokeId id)
buddy->cancelStroke();
}
}
- return stroke;
+ return !stroke.isNull();
}
bool KisStrokesQueue::Private::hasUnfinishedStrokes() const