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 /svtools | |
parent | 5ccf67186d032be4e0200ff9e1771672c8566e44 (diff) |
mbHasInsertTab is not needed anymore
Change-Id: Icc7eb914a16d6492146879967a6dc8b634d50b6e
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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() |