Page 1 of 1

1.4.2: "Edit comment" > checkbox "Use same text for description and comment" does remember its last state

Posted: Fri Feb 03, 2023 4:38 pm
by ThomasLandauer
XnView: MP 1.4.2 64 bit
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 :bug:

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.
}
Workaround to get the text back again, to make it editable:
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.

Re: 1.4.2: "Edit comment" > checkbox "Use same text for description and comment" does remember its last state

Posted: Sun Feb 05, 2023 1:32 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: 1.4.2: "Edit comment" > checkbox "Use same text for description and comment" does remember its last state

Posted: Mon Feb 27, 2023 10:03 am
by xnview
This problem is supposed to be fixed in XnView MP 1.4.3. Please check and confirm the bug fix here.