- 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;
|
mDropped = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (coord.line<=0 || coord.line>=mDocument->lengthOfLongestLine()) {
|
if (coord.line<=0 || coord.line>=mDocument->count()) {
|
||||||
//do nothing if drag out of range
|
//do nothing if drag out of range
|
||||||
event->acceptProposedAction();
|
event->acceptProposedAction();
|
||||||
mDropped = true;
|
mDropped = true;
|
||||||
|
|
Loading…
Reference in New Issue