From 59eb4d2235b88408accf452421526b6f281cbab0 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Wed, 13 Apr 2022 21:30:14 +0200
Subject: [PATCH] SvgOutputDev: Fix ifdef version for getFont API change

---
 filters/karbon/pdf/SvgOutputDev.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filters/karbon/pdf/SvgOutputDev.cpp b/filters/karbon/pdf/SvgOutputDev.cpp
index 7caec15175a..af07c379900 100644
--- a/filters/karbon/pdf/SvgOutputDev.cpp
+++ b/filters/karbon/pdf/SvgOutputDev.cpp
@@ -390,7 +390,7 @@ void SvgOutputDev::drawString(GfxState * state, const GooString * s)
     if (s->getLength() == 0)
         return;
 
-#if POPPLER_VERSION_MACRO < QT_VERSION_CHECK(22, 03, 0)
+#if POPPLER_VERSION_MACRO < QT_VERSION_CHECK(22, 04, 0)
     GfxFont * font = state->getFont();
 #else
     std::shared_ptr<GfxFont> font = state->getFont();
-- 
2.35.1

