summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-04-03 17:22:48 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-04-06 22:12:50 +0200
commit5709b98cc23c18074e4d99abafc487e3f37a2eea (patch)
tree51f025ba5a941d100081a8768041fdd6111c712c /sw
parentcb2ccc4321eba9f42ffb1ecb8a781d068ecf5ab4 (diff)
It does not make sense to iterate on a list with a constant index
Change-Id: If0d12158c23df10d003d9f7ad5bb2bd003b75aa3
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/envelp/envfmt.cxx2
1 files changed, 1 insertions, 1 deletions
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