diff --git a/widget/src/xpwidgets/nsPrintOptionsImpl.cpp b/widget/src/xpwidgets/nsPrintOptionsImpl.cpp index dc3eeb307d4..cf030fc9824 100644 --- a/widget/src/xpwidgets/nsPrintOptionsImpl.cpp +++ b/widget/src/xpwidgets/nsPrintOptionsImpl.cpp @@ -315,9 +315,9 @@ nsPrintOptions::ReadPrefs(nsIPrintSettings* aPS, const nsAString& aPrinterName, // mm when the size unit flag is inches. The value 100 is arbitrary // and can be changed. if (success) { - success = (sizeUnit == nsIPrintSettings::kPaperSizeInches) - && (width < 100.0) - && (height < 100.0); + success = (sizeUnit != nsIPrintSettings::kPaperSizeInches) + || (width < 100.0) + || (height < 100.0); } if (success) {