fix segfault in map image exporter
This commit is contained in:
parent
c0a46ae054
commit
3f7913b694
1 changed files with 5 additions and 2 deletions
|
@ -98,8 +98,11 @@ void MapImageExporter::saveImage() {
|
|||
progress.setMaximum(1);
|
||||
progress.setValue(0);
|
||||
|
||||
int maxWidth = this->map->getWidth() * 16;
|
||||
int maxHeight = this->map->getHeight() * 16;
|
||||
Layout *layout = this->map->layout;
|
||||
if (!layout) break;
|
||||
|
||||
int maxWidth = layout->getWidth() * 16;
|
||||
int maxHeight = layout->getHeight() * 16;
|
||||
if (showBorder) {
|
||||
maxWidth += 2 * STITCH_MODE_BORDER_DISTANCE * 16;
|
||||
maxHeight += 2 * STITCH_MODE_BORDER_DISTANCE * 16;
|
||||
|
|
Loading…
Reference in a new issue