https://bugs.kde.org/show_bug.cgi?id=512876
--- Comment #5 from Branislav Klocok <[email protected]> --- Created attachment 193158 --> https://bugs.kde.org/attachment.cgi?id=193158&action=edit Patch: restore page size after preview / scan-area change (bidirectional detection) Proposed patch (ksanecore pagesizeoption.{h,cpp}) for the preview regression described above. It makes the page-size detection bidirectional (named <-> Custom) using the existing wiggleRoom, so the previously selected size is restored after startPreviewScan()/scanIsFinished() reset and then restore the scan area -- and likewise after a manual scan-area change that matches a predefined size. The four asymmetric slots are consolidated into a single updatePageSize() slot, guarded by a new m_blockAreaDetection flag so the geometry-driven detection does not interfere with explicit combo selection (setValue) or with restoreOptions(). Applies cleanly to v26.04.2 (patch -p1). Note: not yet compile-tested on my side (no local KF6/ECM build env), so please build before merging. -- You are receiving this mail because: You are watching all bug changes.
