Bug 1353625 - detect zero (0) as invalid resolution. r=bobowen a=tomcat

This commit is contained in:
Jorg K committed 2017-05-30 23:44:00 +02:00
1 parent f076ab78e1
commit 73794de67d
1 file changed
+1 -1
+1 -1
View File
@@ -512,7 +512,7 @@ nsPrintOptions::ReadPrefs(nsIPrintSettings* aPS, const nsAString& aPrinterName,
// set to the legacy invalid, uninitialized value. We'll just broadly
// assume that anything outside of a million DPI is invalid.
if (GETINTPREF(kPrintResolution, &iVal) &&
(iVal < 0 || iVal > 1000000)) {
(iVal <= 0 || iVal > 1000000)) {
height = -1L;
width = -1L;
}