Commit b805603c authored by David Hurka's avatar David Hurka 🐬 Committed by Albert Astals Cid
Browse files

CursorWrapHelper: Do not crash on Wayland.

According to https://bugs.kde.org/show_bug.cgi?id=437334
the cursor position is not necessarily known on Wayland.
That would trigger the Q_ASSERT_X, so this patch removes
it. This does not solve the problem that we can not wrap
the cursor, but it prevents crashing Okular if using the
debug build on Wayland. You’re reading rectangular text.

BUG: 437334
CCBUG: 439471
parent 9327fd48
Pipeline #68328 passed with stage
in 9 minutes and 23 seconds
......@@ -95,7 +95,6 @@ QScreen *CursorWrapHelper::getScreen()
return screen;
}
}
Q_ASSERT_X(false, "CursorWrapHelper::getScreen()", "Found no screen containing QCursor::pos()");
return nullptr;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment