summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2015-04-29 10:16:19 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2015-04-29 10:18:43 +0200
commitf01c61a70dca72e4e66f0e6f9df5c2ad52bb778f (patch)
tree1fba0756734dbb907a7cb7033d0d69b2a36b359e
parent1fe1fb546889d824b7331ca0f4731fdf58aea829 (diff)
tdf#89783: avoid endless loop with >65k style names
Change-Id: I09be0ade1cd66253f420c2158ef6c093758ca493
-rw-r--r--sw/source/uibase/app/docstyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index 1b9c81cb2148..549cd54cbf73 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -2969,7 +2969,7 @@ void SwStyleSheetIterator::AppendStyleList(const ::std::vector<OUString>& rList,
{
SwDoc& rDoc = static_cast<SwDocStyleSheetPool*>(pBasePool)->GetDoc();
bool bUsed = false;
- for ( sal_uInt16 i=0; i < rList.size(); ++i )
+ for ( size_t i=0; i < rList.size(); ++i )
{
bool bHidden = false;
sal_uInt16 nId = SwStyleNameMapper::GetPoolIdFromUIName(rList[i], (SwGetPoolIdFromName)nSection);