Created attachment 201064 [details] APSO dialog showing the issue The screenshot has a tree view with all four element states, screenshotted on Windows, GTK3, and gen. * "InsertHello" is a leaf element, without any "expand"/"collapse" icon. * "InsertText" is an expanded element, showing the normal "collapse" icon, defined by Windows theme. * "LibreLogo" is a collapsed element, showing the normal "expand" icon, defined by Windows theme. * "HelloWorld" is an element, which has "CHILDREN_ON_DEMAND" flag, i.e. "we don't know yet, if there are children of the element, or this is a leaf". The "HelloWorld" element shows a triangle on Windows, which is "alien" to the other, normal "collapse"/"expand" icons. It is actually drawn by "!bNativeOK" code in SvTreeListBox::PaintEntry1, the fallback used for controls that can't be drawn natively. The triangle shape itself looks similar to GTK or gen icons used for the task. On gen and GTK, the "CHILDREN_ON_DEMAND" elements are indistinguishable from ordinary collapsed entries. On Windows, TVP_GLYPH has only two states (GLPS_CLOSED, GLPS_OPENED) [1], which shows that it uses the same idea. We should treat "CHILDREN_ON_DEMAND" as ordinary collapsed for the purposes of drawing the icon. [1] https://learn.microsoft.com/en-us/windows/win32/controls/parts-and-states
https://gerrit.libreoffice.org/c/core/+/186106
In fact, a "regression" from dad7593cf6bb91ecf95153e983723dd2cd03b469.
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/54802cdceb9ff3903b4be1b81638b75fdbfb21f4 tdf#166811: let CHILDREN_ON_DEMAND entries draw collapsed in vcl/win It will be available in 25.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.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-25-2": https://git.libreoffice.org/core/commit/9f8c36837329d75e4818d1c0faa1e864afb73870 tdf#166811: let CHILDREN_ON_DEMAND entries draw collapsed in vcl/win It will be available in 25.2.5. 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.