diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2017-01-15 20:20:26 +0100 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2017-01-16 14:07:24 +0000 |
commit | b33715c00ea3a20e219d80845e72a2b37ba6c8cc (patch) | |
tree | f692d1f303fdd5ed2f99ec7ab4b23975c6d6a5ab /include | |
parent | 53f21cde330de4f0ad054a106e7a15654d79b7ee (diff) |
tdf#102139 : prevent the notebookbar from switching to empty tab
Change-Id: I0b463fef98d7597c9b7f22ee84701519a0f2b575
Reviewed-on: https://gerrit.libreoffice.org/33100
Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
Tested-by: Szymon Kłos <eszkadev@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/tabctrl.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx index e9a9dc86f72d..fc7d1a8a9064 100644 --- a/include/vcl/tabctrl.hxx +++ b/include/vcl/tabctrl.hxx @@ -68,7 +68,7 @@ protected: SAL_DLLPRIVATE Rectangle ImplGetTabRect( sal_uInt16 nPos, long nWidth = -1, long nHeight = -1 ); SAL_DLLPRIVATE void ImplChangeTabPage( sal_uInt16 nId, sal_uInt16 nOldId ); SAL_DLLPRIVATE bool ImplPosCurTabPage(); - SAL_DLLPRIVATE void ImplActivateTabPage( bool bNext ); + virtual void ImplActivateTabPage( bool bNext ); SAL_DLLPRIVATE void ImplShowFocus(); SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem* pItem, const Rectangle& rCurRect, bool bFirstInGroup, @@ -208,6 +208,7 @@ public: protected: virtual bool ImplPlaceTabs( long nWidth ) override; virtual void ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) override; + virtual void ImplActivateTabPage( bool bNext ) override; private: bool bLastContextWasSupported; |