diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-10 16:45:31 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-10 16:45:31 +0100 |
commit | 516bb69247c79ea0913856b9b053599f57ad90fb (patch) | |
tree | 8bb12507e95fa7b7b81a0d2e2efadeb68f2ca1c6 /vcl/headless/svpprn.cxx | |
parent | 3114d8a12eb14f27229ecaad6d810e2020b86441 (diff) |
The previous commit wasn't really thought through
Change-Id: I88e44e637e2ac93b4deed42a2d0f94b0a973c995
Diffstat (limited to 'vcl/headless/svpprn.cxx')
-rw-r--r-- | vcl/headless/svpprn.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/headless/svpprn.cxx b/vcl/headless/svpprn.cxx index 50a44320320c..0db8fd8cfad4 100644 --- a/vcl/headless/svpprn.cxx +++ b/vcl/headless/svpprn.cxx @@ -105,7 +105,7 @@ static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData ) nPaperBin < pKey->countValues(); nPaperBin++ ); pJobSetup->SetPaperBin( - (nPaperBin < 0 || nPaperBin >= pKey->countValues() + (nPaperBin == pKey->countValues() || pValue == pKey->getDefaultValue()) ? 0xffff : nPaperBin); } |