Kaydet (Commit) 72e9be9e authored tarafından Caolán McNamara's avatar Caolán McNamara

Erase(foo) erased from foo to end of string

Change-Id: Id65f3964fe41a0645bb3109d830297a2945836f6
üst 6ba253c8
......@@ -1490,7 +1490,7 @@ void PPDParser::getResolutionFromString(
if( ( nPos = rString.indexOf( 'x' ) ) != -1 )
{
rXRes = rString.copy( 0, nPos ).toInt32();
rYRes = rString.getToken( 1, 'x' ).replaceAt( nDPIPos - nPos - 1, 1, "" ).toInt32();
rYRes = rString.getToken( 1, 'x' ).copy(0, nDPIPos - nPos - 1).toInt32();
}
else
rXRes = rYRes = rString.copy( 0, nDPIPos ).toInt32();
......
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