From 213be7a209884b4dadff49f0d378cd4919a3f9a5 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Thu, 2 May 2019 21:08:04 +0300 Subject: Fix loop condition Change-Id: I8061e2bf839a4864eb5af1adb92b4b669e71e98c Reviewed-on: https://gerrit.libreoffice.org/71697 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/dialogs/PlaceEditDialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools/source/dialogs/PlaceEditDialog.cxx') diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx index 089a7f525dc4..cd6c7022ac20 100644 --- a/svtools/source/dialogs/PlaceEditDialog.cxx +++ b/svtools/source/dialogs/PlaceEditDialog.cxx @@ -192,7 +192,7 @@ void PlaceEditDialog::InitDetails( ) Sequence< OUString > aTypesNamesList( officecfg::Office::Common::Misc::CmisServersNames::get( xContext ) ); int nPos = 0; - for ( sal_Int32 i = 0; i < aTypesUrlsList.getLength( ) && aTypesNamesList.getLength( ); ++i ) + for ( sal_Int32 i = 0; i < aTypesUrlsList.getLength( ) && i < aTypesNamesList.getLength( ); ++i ) { OUString sUrl = aTypesUrlsList[i].replaceFirst("", SvtResId(STR_SVT_PORT) + ">"); -- cgit