Apache OpenOffice (AOO) Bugzilla – Issue 24727
auto-hide of toolbox separators does not work in all cirumstances
Last modified: 2004-09-30 16:58:46 UTC
Normally, the ToolBox automatically hides one of two adjacent separator items. E.g., if you have a ToolBox with <A> | <B> | <C> where the bracketed items are normal buttons, then if <B> is hidden (HideItem), one of the two separators is hidden. However, in a scenario where *both* <B> and <C> are hidden, this does not work as expected: Here, only one of the separators is hidden, which results in <A> | , which is surely not expected (is it?). The attached patch is a suggestion how to fix this.
Created attachment 12665 [details] suggested patch
The patch replaces the code which checks whether a separator item should be visible. The basic idea is to iteratively check whether a separator is followed by a visible button: - If a separator is followed (skipping all hidden buttons) by a visible button, then the separator should be visible. - If a separator is followed (skipping all hidden button) by another separator, then the visibility of the first separator is the same as the visibility of the second iterator The old code did always declare a separator as visible when there was a separator following. I hope this is a valid approach to fix this.
fs->ssa: If you'd find some minutes to review and (hopefully approve) this, I'd gladly check this in on my CWS :)
ssa->fs: please, go ahead. I checked with CD that the toolbar configuration dialog is not affected.
great! (thanks for checking with CD yourself, I was going to involve him in this bug, but you were faster - thanks! :)
fix checked in in CWS frmcontrols02
working in CWS frmcontrols02
closing
should get target 2.0 since it is fixed in 2.0 (otherwise it won't appear in the records)