13 lines
368 B
Diff
13 lines
368 B
Diff
--- a/src/gui/text/qtextcursor.cpp
|
|
+++ b/src/gui/text/qtextcursor.cpp
|
|
@@ -363,6 +363,9 @@
|
|
bool adjustX = true;
|
|
QTextBlock blockIt = block();
|
|
|
|
+ if (!blockIt.isValid())
|
|
+ return false;
|
|
+
|
|
if (op >= QTextCursor::Left && op <= QTextCursor::WordRight
|
|
&& blockIt.textDirection() == Qt::RightToLeft) {
|
|
if (op == QTextCursor::Left)
|