From 1ed7a1235780697fe6ab49163c15e0258bd81c81 Mon Sep 17 00:00:00 2001 From: Jakub Melka Date: Sun, 17 Dec 2023 18:38:45 +0100 Subject: [PATCH] Issue #54: Linux compilation --- Pdf4QtViewer/pdfbookmarkmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pdf4QtViewer/pdfbookmarkmanager.cpp b/Pdf4QtViewer/pdfbookmarkmanager.cpp index b78c3f2..c3d97d4 100644 --- a/Pdf4QtViewer/pdfbookmarkmanager.cpp +++ b/Pdf4QtViewer/pdfbookmarkmanager.cpp @@ -35,7 +35,7 @@ public: QJsonObject json; json["isAuto"] = bookmark.isAuto; json["name"] = bookmark.name; - json["pageIndex"] = bookmark.pageIndex; + json["pageIndex"] = static_cast(bookmark.pageIndex); return json; } @@ -44,7 +44,7 @@ public: PDFBookmarkManager::Bookmark bookmark; bookmark.isAuto = json["isAuto"].toBool(); bookmark.name = json["name"].toString(); - bookmark.pageIndex = json["pageIndex"].toInt(); + bookmark.pageIndex = json["pageIndex"].toInteger(); return bookmark; }