skip overlay processing when no overlay is specified

This commit is contained in:
gdzhu
2021-08-26 05:40:58 +01:00
parent 687a2eb91a
commit 7501f1846b
2 changed files with 7 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ private:
bool debugMode = false;
bool fitAspectAxisToWindow = false;
Overlay* overlay;
Overlay* overlay = NULL;
void drawText(QPixmap& image, int margin, int fontsize, QString text, int alignment);