renaming after cropping undoes cropping

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

svennbg
Posts: 18
Joined: Sun Feb 20, 2022 11:34 am

renaming after cropping undoes cropping

Post by svennbg »

If I crop an image and then rename it, the cropping is undone.

From my point of view, it should be the case that the cropping is retained.

My version is 1.8.3 64 bit (Windows)
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: renaming after cropping undoes cropping

Post by xnview »

the problem is that you rename the file without saving it first
Pierre.
svennbg
Posts: 18
Joined: Sun Feb 20, 2022 11:34 am

Re: renaming after cropping undoes cropping

Post by svennbg »

Yes, of course, but it would be very helpful if there was at least a confirmation prompt here.

Something like this:
You have made changes to the photo.
Should the modified version be renamed?

Or at least:
Attention:
You have made changes to the photo.
If you rename the photo, any unsaved changes will be lost.
User avatar
user0
XnThusiast
Posts: 2445
Joined: Sat May 09, 2015 9:37 am

Re: renaming after cropping undoes cropping

Post by user0 »

it's better to implement renaming-dirty-file-without-reloading functionality, eg like in vscode