2006-11-16 Chris Toshok <toshok@ximian.com>
authorChris Toshok <toshok@novell.com>
Fri, 17 Nov 2006 03:37:56 +0000 (03:37 -0000)
committerChris Toshok <toshok@novell.com>
Fri, 17 Nov 2006 03:37:56 +0000 (03:37 -0000)
* PreviewPrintController.cs: fix typo - don't throw
InvalidPrinterException when it wasn't supposed to be.

svn path=/trunk/mcs/; revision=68047

mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog
mcs/class/System.Drawing/System.Drawing.Printing/PreviewPrintController.cs

index 5ad2c2605b44aea7070a47ebeb36666a71bb7890..b7dd052b4917c8b5b6fda8c3dc9da571a6802031 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-16  Chris Toshok  <toshok@ximian.com>
+
+       * PreviewPrintController.cs: fix typo - don't throw
+       InvalidPrinterException when it wasn't supposed to be.
+
 2006-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
 
        * PrintDocument.cs: Use QueryPageSettingsEventArgs.PageSettings
index 2d8e312ec72e3036971a46b03abb22e77fcb8366..965ab28515f63cb1ad9dc84af9dba217fb1511ab 100644 (file)
@@ -60,7 +60,7 @@ namespace System.Drawing.Printing
                [MonoTODO]
                public override void OnStartPrint(PrintDocument document, PrintEventArgs e)
                {
-                       if (document.PrinterSettings.IsValid)
+                       if (!document.PrinterSettings.IsValid)
                                throw new InvalidPrinterException(document.PrinterSettings);
                
                        /* maybe we should reuse the images, and clear them? */