summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2012-07-27 17:31:03 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-27 17:50:22 +0200
commit89f08dce89adfddd3fb8e00b7a7a9c5da2a4943e (patch)
tree5ff4fb439b69b59569632fcbf4e67ae3cf4b5545 /xmloff
parent4c3501cb61147304252e2ac281d3e466b6af93d9 (diff)
sd, sfx2, writerfilter, xmloff: fix some warnings
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/weighhdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/weighhdl.cxx b/xmloff/source/style/weighhdl.cxx
index 2befaa8b274a..66fd36912ab4 100644
--- a/xmloff/source/style/weighhdl.cxx
+++ b/xmloff/source/style/weighhdl.cxx
@@ -109,7 +109,7 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa
{
bRet = sal_False;
static int nCount = sizeof(aFontWeightMap)/sizeof(FontWeightMapper);
- for( int i=0; i<nCount; i++ )
+ for (int i = 0; i < (nCount-1); ++i)
{
if( (nWeight >= aFontWeightMap[i].nValue) && (nWeight <= aFontWeightMap[i+1].nValue) )
{