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

Don't save empty region file into ./

Luna Lovecraft405d7febf734
diff --git a/plugins/dockers/recorder/recorder_writer.cpp b/plugins/dockers/recorder/recorder_writer.cpp
index 003605d7a2..d9b50edb6b 100644
--- a/plugins/dockers/recorder/recorder_writer.cpp
+++ b/plugins/dockers/recorder/recorder_writer.cpp
@@ -531,7 +531,9 @@ RecorderWriterManager::~RecorderWriterManager()
void RecorderWriterManager::setCanvas(QPointer<KisCanvas2> canvas)
{
//Saving previous region as a precaution, so that we don't have to externally manage its state
- saveRegion();
+ if (d->canvas) {
+ saveRegion();
+ }
// Restart writers if canvas changes
bool restart = d->timer.isActive();