From 5709b98cc23c18074e4d99abafc487e3f37a2eea Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Thu, 3 Apr 2014 17:22:48 +0200 Subject: It does not make sense to iterate on a list with a constant index Change-Id: If0d12158c23df10d003d9f7ad5bb2bd003b75aa3 --- sw/source/ui/envelp/envfmt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx index 3c65be1c1d3d..a74fe4788bd0 100644 --- a/sw/source/ui/envelp/envfmt.cxx +++ b/sw/source/ui/envelp/envfmt.cxx @@ -189,7 +189,7 @@ SwEnvFmtPage::SwEnvFmtPage(Window* pParent, const SfxItemSet& rSet) bool bFound = false; while (nPos < m_pSizeFormatBox->GetEntryCount() && !bFound) { - OUString aEntryName = m_pSizeFormatBox->GetEntry(i); + OUString aEntryName = m_pSizeFormatBox->GetEntry(nPos); if (aEntryName < aPaperName) nPos++; else -- cgit