* BUG: Reading the Printer.GrayScale property now returns the correct 
  value.


git-svn-id: svn://localhost/gambas/trunk@6385 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2014-07-16 22:49:20 +00:00
parent 29d06fb0d1
commit fbb0571940

View file

@ -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);