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;