aboutsummaryrefslogtreecommitdiff
path: root/src/documentstyle.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-02-27 09:53:37 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-02-27 11:47:39 +0100
commit414c4aa0a78f567380d4bdb40d55f607e321df4d (patch)
treec0e5019048f886fc49ef4c2043ff1a64d0f71be3 /src/documentstyle.cpp
parent23feba7e5a1396110d543a676e018bcbdfa50d39 (diff)
DocumentStyle: fix build error on unsupported emoji builds
Diffstat (limited to 'src/documentstyle.cpp')
-rw-r--r--src/documentstyle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/documentstyle.cpp b/src/documentstyle.cpp
index 11d29e7..c74faba 100644
--- a/src/documentstyle.cpp
+++ b/src/documentstyle.cpp
@@ -457,7 +457,10 @@ DocumentStyle DocumentStyle::derive(const QUrl &url) const
if (kristall::EMOJIS_SUPPORTED &&
kristall::options.emojis_enabled)
{
+ // Redundant check to make compiler happy...
+ #if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
font.setFamilies(emojiFonts);
+ #endif
}
else
{