diff options
-rw-r--r-- | include/svtools/tabbar.hxx | 1 | ||||
-rw-r--r-- | svtools/source/control/tabbar.cxx | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx index bd90be6ec240..9d0ee92437c4 100644 --- a/include/svtools/tabbar.hxx +++ b/include/svtools/tabbar.hxx @@ -347,7 +347,6 @@ private: bool mbSelColor : 1; bool mbSelTextColor : 1; bool mbMirrored : 1; - bool mbHasInsertTab : 1; // if true, the tab bar has an extra tab at the end. bool mbScrollAlwaysEnabled : 1; Link<> maSelectHdl; diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index ef1cb2887005..7df57d144e67 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -820,7 +820,7 @@ void TabBar::ImplInitControls() mpImpl->mpSizer.disposeAndClear(); } - if (mbHasInsertTab && !mpImpl->mpAddButton) + if ((mnWinStyle & WB_INSERTTAB) && !mpImpl->mpAddButton) { Link<> aLink = LINK(this, TabBar, ImplAddClickHandler); mpImpl->mpAddButton.reset(VclPtr<ImplTabButton>::Create(this, WB_REPEAT)); @@ -878,8 +878,6 @@ void TabBar::ImplInitControls() mpImpl->mpFirstButton.disposeAndClear(); mpImpl->mpLastButton.disposeAndClear(); } - - mbHasInsertTab = (mnWinStyle & WB_INSERTTAB); } void TabBar::ImplEnableControls() |