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++

Fix shape selection converting to pixel selection when moved

Luna Lovecraft66e0c74cbe74
diff --git a/libs/ui/tool/strokes/move_stroke_strategy.cpp b/libs/ui/tool/strokes/move_stroke_strategy.cpp
index c18fd4a75d..e6e106064d 100644
--- a/libs/ui/tool/strokes/move_stroke_strategy.cpp
+++ b/libs/ui/tool/strokes/move_stroke_strategy.cpp
@@ -362,7 +362,7 @@ void MoveStrokeStrategy::initStrokeCallback()
[this] (KisNodeSP node) {
if (dynamic_cast<KisTransformMask*>(node.data())) {
m_d->strategy.emplace(node, new MoveTransformMaskStrategy(node));
- } else if (node->paintDevice()) {
+ } else if (node->paintDevice() && node->paintDevice()->supportsWraproundMode() && node->paintDevice()->defaultBounds()->wrapAroundMode()) {
m_d->strategy.emplace(node, new MovePaintableNodeStrategy(node));
} else {
m_d->strategy.emplace(node, new MoveNormalNodeStrategy(node));