From e01e2b788986c93e3d860ae1ec60a600cd4452c6 Mon Sep 17 00:00:00 2001 From: octaeder <102688820+octaeder@users.noreply.github.com> Date: Wed, 1 Jan 2025 16:33:31 +0100 Subject: [PATCH] pdf-viewer: fix Custom Grid preset values (#3929) --- src/pdfviewer/PDFDocument.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pdfviewer/PDFDocument.cpp b/src/pdfviewer/PDFDocument.cpp index b172dbf0e..7eb13b0dc 100644 --- a/src/pdfviewer/PDFDocument.cpp +++ b/src/pdfviewer/PDFDocument.cpp @@ -3800,8 +3800,8 @@ void PDFDocument::setGrid() QString gs = sender()->property("grid").toString(); if (gs == "xx") { UniversalInputDialog d; - int x = pdfWidget->gridCols(); - int y = pdfWidget->gridRows(); + int x = pdfWidget->gridCols(true); + int y = pdfWidget->gridRows(true); d.addVariable(&x , "X-Grid:"); d.addVariable(&y , "Y-Grid:"); if (d.exec()) {