diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-20 15:17:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-20 15:47:27 +0000 |
commit | 5761c6bc24fa4d20fccef8e89435c0e32c922ade (patch) | |
tree | 777d294d4f04886e33600995130028da9daff528 | |
parent | dc7ec3770819a9aa485221cc8a9b169462689515 (diff) |
Related: rhbz#1149116 collateEquals was set with OString::boolean
but extracted with toInt32()
since
commit c76cd71fe9bdefaef3f33f8ca193c32e3ab112ed
fdo#41524: CUPS printing: use "collate" option when PDF is available
though actual reported problem works fine for me with default f23
configuration already, this looks suspicious however
Change-Id: I6fcb5df8039296c0e8b0fe931cb490396182de38
Reviewed-on: https://gerrit.libreoffice.org/21629
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit e220ba8610f8315af473a230565daa978ca6a16c)
Reviewed-on: https://gerrit.libreoffice.org/21630
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/generic/printer/jobdata.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/printer/jobdata.cxx b/vcl/unx/generic/printer/jobdata.cxx index 9169b01f175c..2c344cc38a11 100644 --- a/vcl/unx/generic/printer/jobdata.cxx +++ b/vcl/unx/generic/printer/jobdata.cxx @@ -250,7 +250,7 @@ bool JobData::constructFromStreamBuffer( void* pData, int bytes, JobData& rJobDa } else if (aLine.startsWith(collateEquals)) { - rJobData.m_bCollate = aLine.copy(RTL_CONSTASCII_LENGTH(collateEquals)).toInt32(); + rJobData.m_bCollate = aLine.copy(RTL_CONSTASCII_LENGTH(collateEquals)).toBoolean(); } else if (aLine.startsWith(margindajustmentEquals)) { |