summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/doclay.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-27 10:25:46 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-27 12:41:57 +0200
commit61acb79808a641e49e4db3a106807045dd744704 (patch)
treea8a7534a523663e4932657a51c4fe32c12eb7c9b /sw/source/core/doc/doclay.cxx
parent360c3e912a264b8b2219a28a64856b5e867adb10 (diff)
sw: fixed STL conversion from 1015cd4ff73ee25e55b4da8c8bc55a41e652da87
Bad integer cast made reserve throw an std::length_error exception Change-Id: Iafdf859dd13e8b44ad61ee7e02eb11370f8260fb
Diffstat (limited to 'sw/source/core/doc/doclay.cxx')
-rw-r--r--sw/source/core/doc/doclay.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 5f6e55feee31..33e7d5646021 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -2053,7 +2053,7 @@ void SwDoc::SetAllUniqueFlyNames()
if( 255 < ( n = GetSpzFrmFmts()->size() ))
n = 255;
SwFrmFmts aArr;
- aArr.reserve( (sal_Int8)n );
+ aArr.reserve( n );
SwFrmFmt* pFlyFmt;
sal_Bool bLoadedFlag = sal_True; // something for the Layout