vcl/source/control/tabctrl.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit e0daa98a802cc1f84ceb0f306f5d15fecabd62c1 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Sat Mar 25 17:52:24 2023 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Sun Mar 26 23:47:55 2023 +0000 tdf#126632 tdf#152908 Resize the notebook bar on context change For other than gtk vcl backend the tabbed compact toolbar tabs do not repaint correctly when the 'Table' tab is active and the cursor is move outside of the table. This patch adds a Resize after the context is set to make the tabs always show as expected. Change-Id: Iedf8a6eea52c3c55e9c1266b7aa79bc0f34deb22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149593 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index b2f86b3cd9a5..8cf999814820 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2312,6 +2312,11 @@ void NotebookbarTabControlBase::SetContext( vcl::EnumContext::Context eContext ) if (!bHandled) bLastContextWasSupported = false; eLastContext = eContext; + + // tdf#152908 Tabbed compact toolbar does not repaint itself when tabs getting removed + // For unknown reason this is needed by the tabbed compact toolbar for other than gtk + // vcl backends. + Resize(); } void NotebookbarTabControlBase::dispose()