[Libreoffice-commits] .: svtools/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Oct 12 21:30:37 PDT 2010
svtools/source/control/tabbar.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ce8ec7ea608fd7933781140798f280f537d5149e
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Wed Oct 13 00:25:40 2010 -0400
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)
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index bd6dd57..62d12b4 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);
}
// -----------------------------------------------------------------------
More information about the Libreoffice-commits
mailing list