diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-02-23 17:00:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-02-23 17:05:09 +0100 |
commit | 64de14a0c14d5c0f47692f4a956d71bfe75614aa (patch) | |
tree | c2d602109f453b6c2e1abee7917ae5582dc55e8b /vcl/unx | |
parent | 74214eba7424dd1d2c23ba1be07ec8d345193a14 (diff) |
My fix is nicer ;)
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 4 |
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 |