summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-09-23 18:22:24 +0200
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-09-23 18:22:24 +0200
commit52c74840c9bdd4809f61d15a82150408966676ea (patch)
tree17f46e1f233e399a6aea4e8badaf6954e672966b /vcl
parentvcl115: #i114666# fix some warnings (thanks pjanik!) (diff)
downloadcore-52c74840c9bdd4809f61d15a82150408966676ea.tar.gz
core-52c74840c9bdd4809f61d15a82150408966676ea.zip
vcl115: #i114702# fix an off by one (thanks cmc!)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/source/fontmanager/fontcache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/source/fontmanager/fontcache.cxx b/vcl/unx/source/fontmanager/fontcache.cxx
index db4a7d05e5fc..0c43373bfa8e 100644
--- a/vcl/unx/source/fontmanager/fontcache.cxx
+++ b/vcl/unx/source/fontmanager/fontcache.cxx
@@ -373,9 +373,9 @@ void FontCache::read()
xub_StrLen nLastIndex = nIndex+1;
for( nIndex = nLastIndex ; nIndex < nLen && pLine[nIndex] != ';'; nIndex++ )
;
- if( nIndex - nLastIndex > 1 )
+ if( nIndex - nLastIndex )
{
- OUString aAlias( pLine+nLastIndex, nIndex-nLastIndex-1, RTL_TEXTENCODING_UTF8 );
+ OUString aAlias( pLine+nLastIndex, nIndex-nLastIndex, RTL_TEXTENCODING_UTF8 );
pFont->m_aAliases.push_back( pAtoms->getAtom( ATOM_FAMILYNAME, aAlias, sal_True ) );
}
}