vcl/unx/generic/printer/ppdparser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 72e9be9ee2941f31fceab0d84178ba6b524f2cb9 Author: Caolán McNamara <caol...@redhat.com> Date: Mon Aug 12 12:53:54 2013 +0100 Erase(foo) erased from foo to end of string Change-Id: Id65f3964fe41a0645bb3109d830297a2945836f6 diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 27c5cba..1f44cec 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -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();
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits