Fix stitched map images sometimes rendering garbage
This commit is contained in:
parent
9feafd64b1
commit
5adf14590a
2 changed files with 2 additions and 0 deletions
|
@ -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 filter retaining text between project open/close.
|
||||||
- Fix the map list mishandling value gaps when sorting by Area.
|
- 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 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
|
## [5.4.1] - 2024-03-21
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -309,6 +309,7 @@ QPixmap MapImageExporter::getStitchedImage(QProgressDialog *progress, bool inclu
|
||||||
progress->setMaximum(stitchedMaps.size());
|
progress->setMaximum(stitchedMaps.size());
|
||||||
int numDrawn = 0;
|
int numDrawn = 0;
|
||||||
QPixmap stitchedPixmap((maxX - minX) * 16, (maxY - minY) * 16);
|
QPixmap stitchedPixmap((maxX - minX) * 16, (maxY - minY) * 16);
|
||||||
|
stitchedPixmap.fill(Qt::black);
|
||||||
QPainter painter(&stitchedPixmap);
|
QPainter painter(&stitchedPixmap);
|
||||||
for (StitchedMap map : stitchedMaps) {
|
for (StitchedMap map : stitchedMaps) {
|
||||||
if (progress->wasCanceled()) {
|
if (progress->wasCanceled()) {
|
||||||
|
|
Loading…
Reference in a new issue