Update to version 1.7.6 #3

Manually merged
letsfindaway merged 2 commits from letsfindaway/OpenBoard:leap-16.0 into leap-16.0 2026-03-02 10:55:39 +01:00
5 changed files with 75 additions and 4 deletions

View File

@@ -0,0 +1,55 @@
From 80f5cd0bdc4cbae8f864b730ade4f9bf19baba2a Mon Sep 17 00:00:00 2001
From: letsfindaway <me@letsfindaway.de>
Date: Wed, 25 Feb 2026 08:18:11 +0100
Subject: [PATCH] build: adapt to poppler 26.02
- poppler 26.02 removes an obsolete parameter from the constructor
of SplashOutputDev
- conditionally remove this parameter depending on poppler version
Signed-off-by: letsfindaway <me@letsfindaway.de>
---
src/pdf/XPDFRenderer.cpp | 4 ++++
src/pdf/XPDFRenderer.h | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/src/pdf/XPDFRenderer.cpp b/src/pdf/XPDFRenderer.cpp
index 4d6c98f8f..8e361430c 100644
--- a/src/pdf/XPDFRenderer.cpp
+++ b/src/pdf/XPDFRenderer.cpp
@@ -235,7 +235,11 @@ QImage* XPDFRenderer::createPDFImageUncached(int pageNumber, qreal xscale, qreal
if(mSplashUncached)
delete mSplashUncached;
+#if POPPLER_VERSION_MAJOR > 26 || (POPPLER_VERSION_MAJOR == 26 && POPPLER_VERSION_MINOR >= 2)
+ mSplashUncached = new SplashOutputDev(splashModeRGB8, 1, constants::paperColor);
+#else
mSplashUncached = new SplashOutputDev(splashModeRGB8, 1, false, constants::paperColor);
+#endif
mSplashUncached->startDoc(mDocument);
int rotation = 0; // in degrees (get it from the worldTransform if we want to support rotation)
diff --git a/src/pdf/XPDFRenderer.h b/src/pdf/XPDFRenderer.h
index 0e8de81a2..6264ae1b0 100644
--- a/src/pdf/XPDFRenderer.h
+++ b/src/pdf/XPDFRenderer.h
@@ -42,6 +42,7 @@
#include <poppler/GlobalParams.h>
#include <poppler/SplashOutputDev.h>
#include <poppler/PDFDoc.h>
+#include <poppler/cpp/poppler-version.h>
class PDFDoc;
@@ -105,7 +106,11 @@ class XPDFRenderer : public PDFRenderer
cachedImage = QImage();
delete splash;
}
+#if POPPLER_VERSION_MAJOR > 26 || (POPPLER_VERSION_MAJOR == 26 && POPPLER_VERSION_MINOR >= 2)
+ splash = new SplashOutputDev(splashModeRGB8, 1, paperColor);
+#else
splash = new SplashOutputDev(splashModeRGB8, 1, false, paperColor);
+#endif
cachedPageNumber = pageNumber;
}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31cdb4049402b93a346637bda537d528ef53c84d70598f0861ad9d77ad3e37eb
size 63262455

BIN
OpenBoard-1.7.6.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Wed Feb 25 14:13:18 UTC 2026 - Martin Winter <me@letsfindaway.de>
- update to release version 1.7.6
* fix: crash when using the "add to document" button in Documents Mode
* fix: standard PDF export method would constantly fail
* fix: rearrange board thumbnails after duplicating scene
-------------------------------------------------------------------
Wed Feb 25 14:00:10 UTC 2026 - Martin Winter <me@letsfindaway.de>
- add patch 1434-build-poppler-26-02.patch
* compatibility with poppler 26.02
-------------------------------------------------------------------
Tue Feb 3 11:11:42 UTC 2026 - Martin Winter <me@letsfindaway.de>

View File

@@ -19,7 +19,7 @@
%define namelc openboard
%define fqname ch.%{namelc}.%{name}
Name: OpenBoard
Version: 1.7.5
Version: 1.7.6
Release: 0
Summary: Interactive whiteboard for schools and universities
License: GPL-3.0-or-later
@@ -30,6 +30,8 @@ Source0: https://github.com/OpenBoard-org/OpenBoard/archive/refs/tags/v%{
Patch955: 0955-shortcut-configuration.patch
# https://github.com/OpenBoard-org/OpenBoard/pull/1347
Patch1347: 1347-chore-appdata.patch
# https://github.com/OpenBoard-org/OpenBoard/pull/1434
Patch1434: 1434-build-poppler-26-02.patch
# https://github.com/letsfindaway/OpenBoard/pull/117
Patch9117: 9117-disable-software-update.patch
BuildRequires: desktop-file-utils