From 3044bf39721fe3cc8849e078f1d5516f2dfaa77b Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Fri, 3 Jan 2020 17:22:35 -0800 Subject: [PATCH] Fixed compiler warnings. --- common/lc_mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/lc_mainwindow.cpp b/common/lc_mainwindow.cpp index f912cd98..9bc1e3a7 100644 --- a/common/lc_mainwindow.cpp +++ b/common/lc_mainwindow.cpp @@ -970,7 +970,7 @@ void lcMainWindow::Print(QPrinter* Printer) int PageCopies; std::vector> PageLayouts = lcGetActiveProject()->GetPageLayouts(); - const int PageCount = PageLayouts.size(); + const int PageCount = static_cast(PageLayouts.size()); if (Printer->collateCopies()) { @@ -1136,7 +1136,7 @@ void lcMainWindow::ShowRenderDialog() void lcMainWindow::ShowPrintDialog() { #ifndef QT_NO_PRINTER - int PageCount = lcGetActiveProject()->GetPageLayouts().size(); + int PageCount = static_cast(lcGetActiveProject()->GetPageLayouts().size()); QPrinter Printer(QPrinter::HighResolution); Printer.setFromTo(1, PageCount + 1); @@ -1733,7 +1733,7 @@ void lcMainWindow::TogglePrintPreview() #ifndef QT_NO_PRINTER // todo: print preview inside main window - int PageCount = lcGetActiveProject()->GetPageLayouts().size(); + int PageCount = static_cast(lcGetActiveProject()->GetPageLayouts().size()); QPrinter Printer(QPrinter::ScreenResolution); Printer.setFromTo(1, PageCount + 1);