[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Mon Aug 12 04:55:19 PDT 2013
vcl/unx/generic/printer/ppdparser.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 72e9be9ee2941f31fceab0d84178ba6b524f2cb9
Author: Caolán McNamara <caolanm at 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();
More information about the Libreoffice-commits
mailing list