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 being impossibility to clone-paste frames multiple times

Dmitry Kazakovfb9e0cd8933f
diff --git a/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp b/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
index 1d923d805f..2d7371676e 100644
--- a/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
+++ b/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
@@ -766,7 +766,7 @@ bool KisAnimTimelineFramesModel::dropMimeDataExtended(const QMimeData *data, Qt:
const bool cloneFrames = action == Qt::LinkAction || copyPolicy == CloneFramesPolicy;
if (dataMoved) {
- *dataMoved = !copyFrames;
+ *dataMoved = !copyFrames && !cloneFrames;
}
KUndo2Command *cmd = 0;