mirror of
https://invent.kde.org/network/krfb
synced 2024-07-08 12:05:49 +00:00
Fixed crash calling PWFrameBuffer::cursorPosition()
Return default QPoint when `d->cursor` is not set. BUG: 472453
This commit is contained in:
parent
9422d0ccf1
commit
d2f4b34fcb
|
@ -501,5 +501,10 @@ bool PWFrameBuffer::isValid() const
|
||||||
|
|
||||||
QPoint PWFrameBuffer::cursorPosition()
|
QPoint PWFrameBuffer::cursorPosition()
|
||||||
{
|
{
|
||||||
return d->cursor->position;
|
const auto cursor = d->cursor;
|
||||||
|
if (cursor) {
|
||||||
|
return cursor->position;
|
||||||
|
} else {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user