Created attachment 204318 [details] overlappingControls.ods: overlapping checked and unchecked box at same position The problem is that LO waffles on which overlapping control to show at the top. Sometimes it paints the checked one, and sometimes it paints the unchecked one. Obviously it is very bad document design by the user to overlap two controls, so in a certain sense this "problem" is a "feature" that hints to the user that there is a document design problem that needs to be fixed. Steps to reproduce: 1. open overlappingControls.ods (I see a checked box) 2. click-on/move-to a different cell (I now see an unchecked box) 3. use the scrollbar to scroll down (I now see a checked box again) I bibisected this to a range of unbuild-able LO 5.0 timer commits on CommitDate: Fri Mar 6 14:51:48 2015 git log 9e678c14e4fc8e58b1e0530744f648fa395..d05a64df34fd143670cb939b72abfb32d6b7 However, I think that probably just exposed an existing problem. Notable commits related to this seem to be: -commit cfa994ccbd6ee (Mon Jun 24 20:17:43 2013) -commit 1856186951a70 (Sat Apr 14 12:46:04 2012) but neither of those two seemed to change the paint order...
https://gerrit.libreoffice.org/c/core/+/194729 should fix this, but I don't have a lot of confidence in it. In my client's example document, it now consistently paints the opposite one that Microsoft Excel paints - and so I'm rather reluctant to get involved here... It exposes the fact that we have no zOrder/zIndex on these form controls. They get zOrdering based on tab-stop order in VCLXContainer::setTabOrder - which ought to be completely unrelated.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/fafa2a75c02611079d8bb11d230c606026427beb tdf#169713 svx: paint from last to first, not first to last It will be available in 26.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.