XCB: Enable loading of the Qt::DragLinkCursor
It did not load due to an off-by-1 boundary error in a check. Qt::DragLinkCursor happens to be Qt::LastCursor. Task-number: QTBUG-39735 Change-Id: Ia7b11fc4eecc4329bd487bd5689c83c986fd2de6 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com> Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
This commit is contained in:
parent
35f6b00334
commit
66790d63e9
@ -545,7 +545,7 @@ xcb_cursor_t QXcbCursor::createFontCursor(int cshape)
|
||||
|
||||
// Try Xcursor first
|
||||
#ifdef XCB_USE_XLIB
|
||||
if (cshape >= 0 && cshape < Qt::LastCursor) {
|
||||
if (cshape >= 0 && cshape <= Qt::LastCursor) {
|
||||
void *dpy = connection()->xlib_display();
|
||||
// special case for non-standard dnd-* cursors
|
||||
cursor = loadCursor(dpy, cshape);
|
||||
|
Loading…
Reference in New Issue
Block a user