From 6f32c736844f533a02d7538a1c4e6fc98e101008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 21 Dec 2023 16:55:42 +0100 Subject: [PATCH] Added infinitive recursion assert --- src/map/IMG/style.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/IMG/style.cpp b/src/map/IMG/style.cpp index 4b6fac5f..784559c6 100644 --- a/src/map/IMG/style.cpp +++ b/src/map/IMG/style.cpp @@ -1272,6 +1272,8 @@ const Style::Point &Style::point(quint32 type) const const QFont *Style::font(Style::FontSize size, Style::FontSize defaultSize) const { + Q_ASSERT(defaultSize != Style::NotSet); + switch (size) { case Style::None: return 0;