mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
Bug 1353625 - detect zero (0) as invalid resolution. r=bobowen a=tomcat
This commit is contained in:
1 parent
f076ab78e1
commit
73794de67d
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user