From 5adf14590a2cb679c0bb4f7be491045d3ad1e755 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Mon, 16 Sep 2024 13:19:26 -0400 Subject: [PATCH] Fix stitched map images sometimes rendering garbage --- CHANGELOG.md | 1 + src/ui/mapimageexporter.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 610f62b5..2e80de0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d - Fix the map list filter retaining text between project open/close. - Fix the map list mishandling value gaps when sorting by Area. - Fix a freeze on startup if project values are defined with mismatched parentheses. +- Fix stitched map images sometimes rendering garbage ## [5.4.1] - 2024-03-21 ### Fixed diff --git a/src/ui/mapimageexporter.cpp b/src/ui/mapimageexporter.cpp index 65811474..10194b8b 100644 --- a/src/ui/mapimageexporter.cpp +++ b/src/ui/mapimageexporter.cpp @@ -309,6 +309,7 @@ QPixmap MapImageExporter::getStitchedImage(QProgressDialog *progress, bool inclu progress->setMaximum(stitchedMaps.size()); int numDrawn = 0; QPixmap stitchedPixmap((maxX - minX) * 16, (maxY - minY) * 16); + stitchedPixmap.fill(Qt::black); QPainter painter(&stitchedPixmap); for (StitchedMap map : stitchedMaps) { if (progress->wasCanceled()) {