From 43d9dd6ad08c7e4ecee99dd9092b85cd50f7312a Mon Sep 17 00:00:00 2001 From: ZhangTingan Date: Tue, 25 Nov 2025 17:04:30 +0800 Subject: [PATCH] fix: build error Log: as title --- reader/CMakeLists.txt | 1 - reader/document/XpsTextExtractor.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/reader/CMakeLists.txt b/reader/CMakeLists.txt index a3d9303d..c5c29bc0 100644 --- a/reader/CMakeLists.txt +++ b/reader/CMakeLists.txt @@ -3,7 +3,6 @@ find_package(PkgConfig REQUIRED) pkg_check_modules(LIBJPEG REQUIRED libjpeg) pkg_check_modules(DDJVU REQUIRED ddjvuapi) -pkg_check_modules(PDFIUM REQUIRED deepin-pdfium${PDF_LIB_VERSION}) if (XPS_SUPPORT_ENABLED) pkg_check_modules(XPS_DEPS REQUIRED libgxps cairo glib-2.0 gobject-2.0) endif() diff --git a/reader/document/XpsTextExtractor.cpp b/reader/document/XpsTextExtractor.cpp index 1d74e0fa..c6fef568 100644 --- a/reader/document/XpsTextExtractor.cpp +++ b/reader/document/XpsTextExtractor.cpp @@ -493,7 +493,7 @@ QList XpsTextExtractor::parseIndices(const QString &indicesStr, int text if (part.startsWith(QLatin1Char(','))) { part = part.mid(1); } - + bool ok = false; double value = part.toDouble(&ok); if (ok && value > 0) {