ScanTailor-Advanced / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
189 stars 7 forks source link

[bug] Applay to ... This page and the following every other page - erratic behaviour #84

Open mrelg opened 8 months ago

mrelg commented 8 months ago

I have a project containing files consecutively named and loaded in natural order starting from: "fixedTextPrefix-2" to "fixedTextPrefix-688".

selecting (the first) page "fixedTextPrefix-2", and applying dialogue to "This page and the following every other page" applies it to: fixedTextPrefix-[2,4,6,7,9,10,12,14,16,18,21,23,25,27,29,30,32,34,36,38,41,43,45,47,49,50...]

selecting (the third) page "fixedTextPrefix-4", and applying dialogue to "This page and the following every other page" applies it to: fixedTextPrefix-[4,6,7,9,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,41,43,45,47,49,50...]

selecting (the second) page "fixedTextPrefix-3", and applying dialogue to "This page and the following every other page" applies it to: fixedTextPrefix-[3,5,8,10,12,14,16,18,20,22,24,26,28,31,33,35,39,40,42,44,46,48,51,53...]

selecting (the fourth) page "fixedTextPrefix-5", and applying dialogue to "This page and the following every other page" applies it to: fixedTextPrefix-[5,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,51,53...]

This erratic behaviour was repeatable inside a project, and was happening across multiple projects, but I'm not shure if the pattern was exactly repeatable between the projects.

I tried reading the code and checking the project file but quickly got lost. I'm not sure if I manually removed the "fixedTextPrefix-1", or have I never loaded it, but in a correctly functioning code, it shouldn't matter for certain. If needed for the bug reproduction, I can attach my project file.

I'm running the 1.0.19 version. I was using the "Alignment - Match size with other pages" check box for quick and easily visible testing.

mrelg commented 8 months ago

"Every other selected page" behaves even worse, if that was even possible at all.