- fix: Crash when drag the selection beyond the end of the document.
This commit is contained in:
parent
6eded18fd6
commit
0fdac532b2
|
@ -6352,7 +6352,7 @@ void QSynEdit::dropEvent(QDropEvent *event)
|
|||
mDropped = true;
|
||||
return;
|
||||
}
|
||||
if (coord.line<=0 || coord.line>=mDocument->lengthOfLongestLine()) {
|
||||
if (coord.line<=0 || coord.line>=mDocument->count()) {
|
||||
//do nothing if drag out of range
|
||||
event->acceptProposedAction();
|
||||
mDropped = true;
|
||||
|
|
Loading…
Reference in New Issue