Skip to content

Commit

Permalink
pdf-viewer: fix Custom Grid preset values (#3929)
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder authored Jan 1, 2025
1 parent 62aa71f commit e01e2b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pdfviewer/PDFDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit e01e2b7

Please sign in to comment.