Created attachment 202144 [details] ods with 300 sheets When working with an .ods file that contains a large number of sheets (e.g., 300), there is an issue when returning from Print Preview. If a sheet near the end of the list (e.g., Sheet290) is active, entering Print Preview and then exiting it causes the Sheet Tab Bar to display the wrong range of sheets. The active sheet (e.g., Sheet290) is not visible in the tab bar — instead, it shows an earlier range of sheets (e.g., from Sheet257 to Sheet272). This forces the user to manually scroll to relocate the active sheet tab.
Created attachment 202145 [details] before print preview
Created attachment 202146 [details] after print preview
Reproducible. Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61 CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: CL threaded But the cursor remains in the sheet, looks like a refreshing issue.