diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-14 11:32:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-14 17:13:43 +0100 |
commit | ff7c2cd0dc89f0ffa6742f1f5dcf89f5a6f03839 (patch) | |
tree | 5acd7692e59d499143c82746eee4b7f5c108c715 /svtools | |
parent | 9e8a593b44a3acb97297439f3d93be2c673a3625 (diff) |
Resolves: fdo#84887 TabBar::ImplShowPage crash
Change-Id: I84250c6a40baeabd0d12958dfe0aea346d2b4fc8
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 20d570b0e7c1..dc4b1997a1c2 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -788,10 +788,11 @@ void TabBar::SetScrollAlwaysEnabled(bool bScrollAlwaysEnabled) ImplEnableControls(); } - - void TabBar::ImplShowPage( sal_uInt16 nPos ) { + if (nPos >= mpItemList->size()) + return; + // calculate width long nWidth = GetOutputSizePixel().Width(); @@ -811,8 +812,6 @@ void TabBar::ImplShowPage( sal_uInt16 nPos ) } } - - IMPL_LINK( TabBar, ImplClickHdl, ImplTabButton*, pBtn ) { EndEditMode(); |