Skip to content

Commit

Permalink
TemplateImage: Prevent file rewriting on georef changes
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
dg0yt committed Feb 7, 2020
1 parent acabd3d commit 4b1116b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/template_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ bool TemplateImage::trySetTemplateGeoreferenced(bool value, QWidget* dialog_pare
{
is_georeferenced = false;
}
setHasUnsavedChanges(true);
map->setTemplatesDirty();
}
return is_georeferenced;
}
Expand Down

0 comments on commit 4b1116b

Please sign in to comment.