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

Only create tail frame(s) when needed

Luna Lovecraft15eaf10d22c0
diff --git a/plugins/dockers/recorder/recorder_writer.cpp b/plugins/dockers/recorder/recorder_writer.cpp
index ebc5fa464c..003605d7a2 100644
--- a/plugins/dockers/recorder/recorder_writer.cpp
+++ b/plugins/dockers/recorder/recorder_writer.cpp
@@ -856,9 +856,11 @@ void RecorderWriterManager::tryRestoreRegion()
void RecorderWriterManager::saveState()
{
saveRegion();
- // Capture some tail frame
- d->captureTail = true;
- onTimer();
+ // Capture some tail frames, but only if we're zoomed in, and if some frames were captured
+ if (d->oldRegion != d->canvas->image()->bounds() && d->oldRegion != QRect(-1, -1, -1, -1)) {
+ d->captureTail = true;
+ onTimer();
+ }
}
void RecorderWriterManager::restoreState()