summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-10-13 00:25:40 -0400
committerKohei Yoshida <kyoshida@novell.com>2010-10-13 00:25:40 -0400
commite10b5bef6746338777cb350a87cf7aa5890c4809 (patch)
treeb9f9fbb6c95d5f846ef926adaab08eff6920e7cd
parent32ccbf8ddef1e32af270381475c4c53c1e43b834 (diff)
Delay setting the flag for insert tab.
The client code needs to be able to change the "insert tab" flag so that, when switching between read-only and editable mode the insert tab reflects that mode change. (fdo#30678)
-rw-r--r--svtools/source/control/tabbar.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index a902b02f6028..8219cec6a836 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -410,7 +410,6 @@ void TabBar::ImplInit( WinBits nWinStyle )
mbSelColor = FALSE;
mbSelTextColor = FALSE;
mbMirrored = FALSE;
- mbHasInsertTab = (nWinStyle & WB_INSERTTAB);
if ( nWinStyle & WB_3DTAB )
mnOffY++;
@@ -723,6 +722,8 @@ void TabBar::ImplInitControls()
DELETEZ( mpFirstBtn );
DELETEZ( mpLastBtn );
}
+
+ mbHasInsertTab = (mnWinStyle & WB_INSERTTAB);
}
// -----------------------------------------------------------------------