diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-20 18:29:48 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-20 19:44:25 +0900 |
commit | 87d5859b1615fb165d6160baa50c5c5da3ca82c6 (patch) | |
tree | 4b9a79ec3091bc5c5463bfe0194d25a2d2073c01 | |
parent | 5ccf67186d032be4e0200ff9e1771672c8566e44 (diff) |
mbHasInsertTab is not needed anymore
Change-Id: Icc7eb914a16d6492146879967a6dc8b634d50b6e
-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() |