[Libreoffice-commits] .: sfx2/source
Caolán McNamara
caolan at kemper.freedesktop.org
Tue May 24 01:02:41 PDT 2011
sfx2/source/dialog/templdlg.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 8f0037d8921b47b8d22e9bb08fb372be58d13bde
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon May 23 13:03:03 2011 +0100
don't need to set it to 0 twice
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 96125ba..5e93083 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1336,11 +1336,9 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
aFmtLb.SetUpdateMode(sal_False);
aFmtLb.Clear();
- nPos = 0;
for(nPos = 0 ; nPos < nCount ; ++nPos )
- {
aFmtLb.InsertEntry( *aStrings.GetObject( nPos ), 0, sal_False, nPos);
- }
+
aFmtLb.SetUpdateMode(true);
}
// Selects the current style if any
More information about the Libreoffice-commits
mailing list