Somehow related to https://bugs.documentfoundation.org/show_bug.cgi?id=142192 it seems: When opening multiple (two) windows of one document, and select some different text in each windows, and finally select "Export as..." PDF, then the portion exported to PDF is not the selection of the window where the export was started, but the selection of the other window.
Reproduced with a very specific routine: 1. Open some document and open a new window 2. In the original window select something 3. In the second window, select something else 4. While still in the second window, export as PDF Already seen in oldest of Linux 43all repo. Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 0484a9a3f5e2ecb678f6fb41bbb251529e89c00d CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 7 March 2023