0.96.5: {File Index} variable sometimes includes updir '..'

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
Hacker
Posts: 242
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia
Contact:

0.96.5: {File Index} variable sometimes includes updir '..'

Post by Hacker »

XnView: MP 0.96.5 - 64 bit
OS: Windows 10 v2004 - 64bit

The {File Index} variable sometimes includes the updir '..' item when counting files. As '..' is not a file that can be displayed it shouldn't be included in the calculation.

Effect: The user sees e.g. 2/11 when viewing the first JPG in a folder with 10 JPG files.

To reproduce:
1. Have a folder with ten JPG files.
2. Set Settings - Interface - Switching mode - Use ENTER to switch between: to "Browser > Fullscreen > Viewer" or "Browser <> Fullscreen | Viewer <> Fullscreen". With "Browser > Viewer > Fullscreen" it is not reproducible.
2. Set Settings - View - Info to: {File Index}.
3. Set Settings - File list - Custom filter - Parent folder ('..') to Visible. With not Visible it is not reproducible.
4. Select the first image and press Enter.

Actual behaviour (bug): The Info shows 2/11. :bug:

Expected behaviour: The Info shows 1/10 (same as in Viewer, or when entering Fullscreen from Viewer, not from Browser).

TIA
Roman
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.96.5: {File Index} variable sometimes includes updir '..'

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.96.5: {File Index} variable sometimes includes updir '..'

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.00 beta. Please check and confirm the bug fix here.
Pierre.
Hacker
Posts: 242
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia
Contact:

Re: 0.96.5: {File Index} variable sometimes includes updir '..'

Post by Hacker »

Fixed in v1.00, thanks Pierre!

Roman
Post Reply