Skip to content

Commit c14481e

Browse files
[win-linux] ceditortools: debug after merge
1 parent e1cb7c8 commit c14481e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

win-linux/src/ceditortools.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ namespace CEditorTools
128128
printer->setFromTo(1, pagesCount);
129129
printer->printEngine()->setProperty(QPrintEngine::PPK_DocumentName, documentName);
130130
printer->setDuplex(AscAppManager::printData().duplexMode());
131+
printer->setColorMode(AscAppManager::printData().colorMode() ? QPrinter::Color : QPrinter::GrayScale);
131132
if ( printer->supportsMultipleCopies() ) {
132133
printer->setCopyCount(AscAppManager::printData().copiesCount());
133134
}

0 commit comments

Comments
 (0)