diff options
-rw-r--r-- | vcl/qt5/Qt5Frame.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx index 65055e8546a1..4f5d18c7eb85 100644 --- a/vcl/qt5/Qt5Frame.cxx +++ b/vcl/qt5/Qt5Frame.cxx @@ -687,9 +687,9 @@ void Qt5Frame::CaptureMouse(bool bMouse) void Qt5Frame::SetPointerPos(long nX, long nY) { - QCursor aCursor = m_pQWidget->cursor(); + // some cursor already exists (and it has m_ePointerStyle shape) + // so here we just reposition it QCursor::setPos(m_pQWidget->mapToGlobal(QPoint(nX, nY))); - m_pQWidget->setCursor(aCursor); } void Qt5Frame::Flush() |