Page 1 of 1

1.5.2: Empty "Size" label is not hidden when "File Type" is presented

Posted: Thu Aug 03, 2023 2:49 pm
by sad comrade
XnView: MP 1.5.2 - 64 bit
OS: Windows 64bit

Empty (({Size})) label is not hidden when there is a {File Type} label on the same line.

Effect: Size is displayed as "0 Bytes"

To reproduce:
1. Go to Settings > Thumbnail > Labels
2. Add a custom labels line:

Code: Select all

foo (({File Type})) (({Size}))
3. Add another custom labels line:

Code: Select all

foo (({Size}))
4. Confirm setting change
5. Examine thumbnails for a file and for a directory

Actual behaviour (bug):
  1. "foo (({File Type})) (({Size}))" is displayed:
    1. for directory as foo··0·Bytes ("·" is a space character)
    2. for file as foo·JPG·207.03·KiB
  2. "foo (({Size}))" is displayed:
    1. for directory as ·
    2. for file as foo·207.03·KiB
Expected behaviour: Empty (({Size})) should be hidden disregarding of other labels presence - "foo (({File Type})) (({Size}))" > "foo". Also it's kind of strange that foo is removed from result of "foo (({Size}))" if Size is empty

Re: 1.5.2: Empty "Size" label is not hidden when "File Type" is presented

Posted: Sun Aug 20, 2023 12:24 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: 1.5.2: Empty "Size" label is not hidden when "File Type" is presented

Posted: Tue Sep 05, 2023 1:24 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.5.4. Please check and confirm the bug fix here.

Re: 1.5.2: Empty "Size" label is not hidden when "File Type" is presented

Posted: Tue Sep 05, 2023 7:23 pm
by sad comrade
I confirm the bug has been fixed in 1.5.4