summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/headless/svpprn.cxx2
-rw-r--r--vcl/unx/generic/print/genprnpsp.cxx2
2 files changed, 2 insertions, 2 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);
}
diff --git a/vcl/unx/generic/print/genprnpsp.cxx b/vcl/unx/generic/print/genprnpsp.cxx
index 179057172ec2..f8321b73d650 100644
--- a/vcl/unx/generic/print/genprnpsp.cxx
+++ b/vcl/unx/generic/print/genprnpsp.cxx
@@ -201,7 +201,7 @@ static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData )
nPaperBin < pKey->countValues();
nPaperBin++);
pJobSetup->SetPaperBin(
- nPaperBin < 0 || nPaperBin >= pKey->countValues() ? 0 : nPaperBin);
+ nPaperBin == pKey->countValues() ? 0 : nPaperBin);
}
// copy duplex