diff options
author | Michael Stahl <mst@openoffice.org> | 2012-07-31 14:47:26 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-07-31 14:47:26 +0200 |
commit | 10790f7a0bcf0fdcfafedda8c98a8f6ef845fd38 (patch) | |
tree | 9a7cfa2d7ae1fa39e782d60c43b7334ad13b8f93 /xmloff | |
parent | 746954f550d3d42393a817cd1172403e098d119f (diff) |
sd, sfx2, writerfilter, xmloff: fix some warnings
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/weighhdl.cxx | 2 |
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) ) { |