From fbb05719405b2be8cf49b652670204e6e5126571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 16 Jul 2014 22:49:20 +0000 Subject: [PATCH] [GB.QT4] * BUG: Reading the Printer.GrayScale property now returns the correct value. git-svn-id: svn://localhost/gambas/trunk@6385 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.qt4/src/cprinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.qt4/src/cprinter.cpp b/gb.qt4/src/cprinter.cpp index c1c450fae..66f9d558b 100644 --- a/gb.qt4/src/cprinter.cpp +++ b/gb.qt4/src/cprinter.cpp @@ -356,7 +356,7 @@ END_PROPERTY BEGIN_PROPERTY(Printer_GrayScale) if (READ_PROPERTY) - GB.ReturnBoolean(!PRINTER->colorMode() == QPrinter::GrayScale); + GB.ReturnBoolean(PRINTER->colorMode() == QPrinter::GrayScale); else PRINTER->setColorMode(VPROP(GB_BOOLEAN) ? QPrinter::GrayScale : QPrinter::Color);