summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-23 17:00:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-23 17:05:09 +0100
commit64de14a0c14d5c0f47692f4a956d71bfe75614aa (patch)
treec2d602109f453b6c2e1abee7917ae5582dc55e8b /vcl
parentClean up (diff)
downloadcore-64de14a0c14d5c0f47692f4a956d71bfe75614aa.tar.gz
core-64de14a0c14d5c0f47692f4a956d71bfe75614aa.zip
My fix is nicer ;)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index bbb31f0514ef..e5553961b166 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -1100,9 +1100,9 @@ void PPDParser::parse( ::std::list< rtl::OString >& rLines )
if (nTransPos == -1)
nTransPos = aLine.getLength();
aValue = String( aLine.copy( 0, nTransPos ), RTL_TEXTENCODING_MS_1252 );
- if (nTransPos+2 < aLine.getLength())
+ // after the second doublequote can follow a / and a translation
+ if (nTransPos < aLine.getLength() - 2)
{
- // after the second doublequote can follow a / and a translation
aValueTranslation = handleTranslation( aLine.copy( nTransPos+2 ), bIsGlobalizedLine );
}
// check for quoted value