diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2017-01-17 22:56:02 +0100 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2017-01-18 10:57:37 +0000 |
commit | cce54bf33808dc7422ded08a7d4d38fb0194a047 (patch) | |
tree | c87c7ec4570985ebd9114742a12a3de76359e181 /vcl | |
parent | 938e918dedb17f371676c1c0c0306442b620584e (diff) |
tdf#102139 : avoid switching to the empty tab after exiting the OLE Object
Change-Id: I67c395106d2a24c679cddaddd9aba138388463a5
Reviewed-on: https://gerrit.libreoffice.org/33237
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 740628bf5570..4c69fcee32a7 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2286,6 +2286,8 @@ void NotebookbarTabControl::SetCurPageId( sal_uInt16 nPageId ) { if ( nPageId != 1 ) TabControl::SetCurPageId( nPageId ); + if ( nPageId == GetPageCount() ) + ImplActivateTabPage( true ); } void NotebookbarTabControl::ImplActivateTabPage( bool bNext ) |