summaryrefslogtreecommitdiff
path: root/emfio/source
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-08-30 17:04:53 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-08-30 20:13:14 +0200
commit91b0024965908c692bea40f47c58ea9d1bf8a596 (patch)
tree842685f7c3de90c4ca418931df1fc528ffb1315b /emfio/source
parent8b3d5a79c0f70cb3bdfa4cbe8adf91521a28d89c (diff)
tdf#103612 sw: fix confusing inheritance of section hidden flag
SwSectionData has 3 confusing boolean members for hiding: * m_bHidden corresponds to the Hide checkbox in the UI * m_bCondHiddenFlag stores the result of evaluating the hide condition * m_bHiddenFlag is the final computed result that indicates that this section is hidden Now, the first 2 flags determine m_bHiddenFlag = true, but there's another possibility: m_bHiddenFlag is also true if there is a parent section for which m_bHiddenFlag is true (because of course this hides all section content including nested sections)... the latter situation is apparently handled in SwSectionFormat::UpdateParent(). The code in SwSection::SwSection() checks the parent's m_bHiddenFlag but then sets the child's m_bHidden, which looks very wrong, so remove this. Also adapt 2 other places that look like they should be checking a different flag. Change-Id: I58d9c878b58ad6cd878f450072178006b4c7ebb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121314 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'emfio/source')
0 files changed, 0 insertions, 0 deletions