summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2012-08-02 12:07:08 +0200
committerPetr Mladek <pmladek@suse.cz>2012-08-02 15:38:29 +0200
commitf15f1a61e4a5ccfacc8a0df78241ca205015ce3d (patch)
tree2748297644e862518ca605598e532055ad648273 /xmloff
parent1fd46495c055db749cdf84191d6e086b1523241f (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.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) )
{