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

Bugs which have been reproduced by a second user or the developer, or features to do

Moderator: Dreamer

Post Reply
Hacker
Posts: 208
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: 34643
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
Pierre.
Post Reply