diff options
Diffstat (limited to 'widgets/displaytext.cpp')
| -rw-r--r-- | widgets/displaytext.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 ()) { |
