Description: When editing a formula within a cell, only the outer brackets are highlighted in bold. Steps to Reproduce: 1. Open new Calc. 2. Insert formula "=(1+(2+3)+4)" in Cell [ A1 ]. 3. Edit cell formula by [F2] key. Actual Results: 4. The outer "(" and ")" are always highlighted in bold, regardless of the cursor position. Expected Results: 4. As the cursor moves, only the corresponding brackets are highlighted. Reproducible: Always User Profile Reset: No Additional Info: Not reproducible with [2025-04-26] Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: e4fb32ffef1630ceaf5a0a77307e02ae93c9f8f4 CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win Locale: en-US (ja_JP); UI: en-US Calc: CL threaded Reproducible with [2025-05-12] Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 19f3b72f34c487dc97d582712d21734a7e055fd5 CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win Locale: en-US (ja_JP); UI: en-US Calc: CL threaded
Created attachment 200765 [details] Screenshot Not reproducible Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 19f3b72f34c487dc97d582712d21734a7e055fd5 CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: en-GB Calc: CL threaded
Regression introduced by: commit f678ec9a65c4d7ae2d4dda4599a06fc4b66a27d8 [log] author Armin Le Grand (Collabora) <Armin.Le.Grand@me.com> Wed Apr 30 14:16:25 2025 +0200 committer Armin Le Grand <Armin.Le.Grand@me.com> Wed May 07 10:54:30 2025 +0200 tree cf1c9e038d9c936cb8b24d54fba5bc42a5059692 parent 0891df6b21fd95ec7c9614509d92829c0f17c353 [diff] CEOO: CellEditOnOverlay Bisected with: bibisect-linux64-25.8
See comments in https://bugs.documentfoundation.org/show_bug.cgi?id=166525 to learn more about CEOO. The 'fat' outer brackets are a paint effect somehow - seems to be a place where additionally to the overlay the formula gets still painted somewhere 'directly' -> you can see that when in that mode and moving the cursor in the cell -> CEOO gets painted with correct brackets then.
Showing correspondent brackets is wanted. No idea why always the outer ones weere shown, but with https://bugs.documentfoundation.org/show_bug.cgi?id=166525#c12 I can no longer reproduce. Also checked for remaining calls to direct paint (EditView::Paint in editeng/source/editeng/editview.cxx), but found none. Only remaining is from the WeldEditView::DoPaint, that is the control at the top.
Cannot repro with fix of https://bugs.documentfoundation.org/show_bug.cgi?id=166525 - can someone check?