diff options
| author | Christoph Berg <myon@debian.org> | 2020-06-02 20:44:28 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-06-02 20:44:28 +0200 |
| commit | 5c05cfa3903d8a71d77f4b3dc1d2d0c7a043c6d6 (patch) | |
| tree | b6617065dc8e840bccb26a72d22d945353a8f064 /widgets/displaytext.cpp | |
| parent | 458b033b8ae7818d50e80f51b12c0c43bbd0d3e2 (diff) | |
New upstream version 2.2.0+repackupstream/2.2.0+repack
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 ()) { |
