Skip to content

Commit 4b1116b

Browse files
committed
TemplateImage: Prevent file rewriting on georef changes
Changing whether a template is used georeferenced or not does not mean that the template file itself should be rewritten. In fact, the old behaviour is dangerous: Rewriting may cause loss of quality (JPEG) or loss of georeferencing information (GeoTIFF -> TIFF).
1 parent acabd3d commit 4b1116b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/template_image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ bool TemplateImage::trySetTemplateGeoreferenced(bool value, QWidget* dialog_pare
391391
{
392392
is_georeferenced = false;
393393
}
394-
setHasUnsavedChanges(true);
394+
map->setTemplatesDirty();
395395
}
396396
return is_georeferenced;
397397
}

0 commit comments

Comments
 (0)