From 5c05cfa3903d8a71d77f4b3dc1d2d0c7a043c6d6 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Tue, 2 Jun 2020 20:44:28 +0200 Subject: New upstream version 2.2.0+repack --- widgets/displaytext.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'widgets/displaytext.cpp') diff --git a/widgets/displaytext.cpp b/widgets/displaytext.cpp index b3ccf8eb..ae865bc9 100644 --- a/widgets/displaytext.cpp +++ b/widgets/displaytext.cpp @@ -608,9 +608,12 @@ void DisplayText::highlight_callsign (QString const& callsign, QColor const& bg, } } } - else if (pos != highlighted_calls_.end ()) + else { - highlighted_calls_.erase (pos); + if (pos != highlighted_calls_.end ()) + { + highlighted_calls_.erase (pos); + } QTextCursor cursor {document ()}; while (!cursor.isNull ()) { -- cgit v1.2.3