Created attachment 42078 [details]
Steps to reproduce:
1) Open the attached TestDoc.ods
2) Select View > "Page Break Preview"
3) Look at the pages names dragging down the side slider. The name "Page 1" is repeated twice.
4) If you reach the end of the document and then dragging up, now "Page 2" is repeated twice...
Created attachment 42079 [details]
No feedback for this issue? This strange behavior is LibO specific for me. OOo 3.3 RC9 works fine.
I confirm the issue. It only happens when you scroll down with the slider. Page Up/Page Down keys work as expected.
I changed this part of code a few months ago, but I don't understand why it causes a regression. Kohei, could you please have a look at it?
Well, basically, the page number string is 'Page %1' only during the first iteration. In the second iteration it becomes 'Page 1', so the replacement of %1 with the real page number never takes place, and the page string gets stuck with 'Page 1'.
This bug happens only when the window is large enough to show several "Page X" strings. Otherwise the loop always ends after the first iteration, hence the bug never hits.
I've just fixed this on master.
I'll ask for a sign-off so that we can cherry-pick this to 3.3.x. But I'm not sure if we can put this into 3.3.0 final given this doesn't meet our blocker criteria.
I'll mark this fixed. I've already requested for review for the inclusion into 3.3.1. I doubt that this fix will make it into 3.3.0 in this late RC cycle.
Setting target to 3.4 which is what master is for currently.
Cherry-picked to the 3.3.1 branch.
*** Bug 33488 has been marked as a duplicate of this bug. ***