OS: Linux 64bit
When you have some JPEGs with "Description" and "Embedded comment", and the `descript.ion` file breaks (e.g. due to the bug viewtopic.php?f=95&t=44685), the "Edit comment" dialog window doesn't show the embedded comment anymore.
Effect: Unable to *edit* an existing embedded comment.
To reproduce:
1. Select all images in a folder, then Edit > Edit comment. Enter anything in the above textarea ("Description (stored in descript.ion file)"), then check "Use same text for description and comment". Click "Write all", then close the dialog.
2. Back in the file list, hit F5, and note that the file sizes are increasing (due to the embedded comment being written into them).
3. Close XnView and delete the `descript.ion` file. Alternatively, do batch rename, as this will break the `descript.ion` file (see the other bug).
4. Restart XnView. => The embedded comment is still shown in the "Comment" column of each file.
5. Hit Ctrl+D on any image.
Actual behaviour (bug): Both textareas ("Description" and "Embedded comment") are empty
Expected behaviour: Display the comment in the "Embedded comment" textarea.
My best guess to achieve this:
Code: Select all
if (Description === Comment) {
// paste existing code here
} else {
// Uncheck "Use same text for description and comment" and display the actual Description in its textarea, and the actual Comment in its textarea.
}
1. Uncheck the (still checked) "Use same text for description and comment".
2. Close the dialog (!)
3. Open it again (Ctrl+D) => Voilà, the comment is shown in the "Embedded comment" textarea.