summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-07-01 15:46:31 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-07-16 09:53:21 +0200
commitfb156b90abcbf2b1eb35f78286ae4ccb0af33dbf (patch)
tree9e0b42f036e28949f192c658751596acee637c9b /svtools
parentd309823debb36e41a650f706e040841aade1dd40 (diff)
PlaceEditDialog: resolved a crash
Change-Id: Id20ca57819fd3af80b407678f6d176a804399ce5
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/dialogs/ServerDetailsControls.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx
index 08460cb74f6d..3fc26c43927b 100644
--- a/svtools/source/dialogs/ServerDetailsControls.cxx
+++ b/svtools/source/dialogs/ServerDetailsControls.cxx
@@ -351,9 +351,11 @@ void CmisDetailsContainer::selectRepository( )
{
// Get the repo ID and call the Change listener
sal_uInt16 nPos = m_pLBRepository->GetSelectEntryPos( );
- m_sRepoId = m_aRepoIds[nPos];
-
- notifyChange( );
+ if( nPos < m_aRepoIds.size() )
+ {
+ m_sRepoId = m_aRepoIds[nPos];
+ notifyChange( );
+ }
}
IMPL_LINK_NOARG( CmisDetailsContainer, RefreshReposHdl )