-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
fcitx5-qt/qt5/platforminputcontext/fcitxcandidatewindow.cpp
Lines 514 to 531 in 24c7dfc
if (!nativeCursorRect.intersects(windowGeometry)) { | |
if (nativeCursorRect.right() < windowGeometry.left()) { | |
nativeCursorRect.setLeft(windowGeometry.left()); | |
nativeCursorRect.setWidth(1); | |
} | |
if (nativeCursorRect.left() > windowGeometry.right()) { | |
nativeCursorRect.setLeft(windowGeometry.right()); | |
nativeCursorRect.setWidth(1); | |
} | |
if (nativeCursorRect.bottom() < windowGeometry.top()) { | |
nativeCursorRect.setTop(windowGeometry.top()); | |
nativeCursorRect.setWidth(1); | |
} | |
if (nativeCursorRect.top() > windowGeometry.bottom()) { | |
nativeCursorRect.setTop(windowGeometry.bottom()); | |
nativeCursorRect.setWidth(1); | |
} | |
} |
I think the 3rd & 4th setWidth
should be changed to setHeight
. Otherwise, the height is possibly set to zero, causing the crash of LibreOffice bug 160275.
Metadata
Metadata
Assignees
Labels
No labels