Skip to content

Commit

Permalink
Fix stitched map images sometimes rendering garbage
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Sep 16, 2024
1 parent 9feafd6 commit 5adf145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/ui/mapimageexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 5adf145

Please sign in to comment.