Kaydet (Commit) 233a2fe4 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736943 try swapping arguments around as an experiment

Change-Id: I89f0cfc9049503318955d58dde3f9a3e1197c45d
üst a0bd9fda
......@@ -844,9 +844,9 @@ bool PrintFontManager::analyzeFontFile( int nDirID, const OString& rFontFile, ::
//a sane starting point
//http://processingjs.nihongoresources.com/the_smallest_font/
//https://github.com/grzegorzrolek/null-ttf
int nMaxFontsPossible = fileSize / 528;
const int nMaxFontsPossible = fileSize / 528;
nLength = std::min(nLength, nMaxFontsPossible);
nLength = std::min(nMaxFontsPossible, nLength);
for( int i = 0; i < nLength; i++ )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment