diff options
author | nyamatongwe <unknown> | 2012-07-21 11:14:42 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-07-21 11:14:42 +1000 |
commit | b8dbea549073db7d6fe9c3c5c738ee894ef768cc (patch) | |
tree | a5ff34533ff3a8987df0041c956d1a14ec483f62 | |
parent | 5ca40a44b93a3c2ebe35f115661bb867f5897eba (diff) | |
download | scintilla-mirror-b8dbea549073db7d6fe9c3c5c738ee894ef768cc.tar.gz |
Avoid problems when calltip highlight range is negative. Bug #3545938.
-rw-r--r-- | src/CallTip.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index d93d80411..9f17e592a 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -307,7 +307,7 @@ void CallTip::SetHighlight(int start, int end) { // Avoid flashing by checking something has really changed if ((start != startHighlight) || (end != endHighlight)) { startHighlight = start; - endHighlight = end; + endHighlight = (end > start) ? end : start; if (wCallTip.Created()) { wCallTip.InvalidateAll(); } |