[Libreoffice-commits] core.git: svtools/source
Arkadiy Illarionov (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 3 07:15:00 UTC 2019
svtools/source/dialogs/PlaceEditDialog.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 213be7a209884b4dadff49f0d378cd4919a3f9a5
Author: Arkadiy Illarionov <qarkai at gmail.com>
AuthorDate: Thu May 2 21:08:04 2019 +0300
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri May 3 09:13:49 2019 +0200
Fix loop condition
Change-Id: I8061e2bf839a4864eb5af1adb92b4b669e71e98c
Reviewed-on: https://gerrit.libreoffice.org/71697
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
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("<host", "<" + SvtResId(STR_SVT_HOST)).replaceFirst("port>", SvtResId(STR_SVT_PORT) + ">");
More information about the Libreoffice-commits
mailing list