8000 Merge pull request #1404 from mdboom/pyside_crash · matplotlib/matplotlib@d5109fa · GitHub
[go: up one dir, main page]

Skip to content

Commit d5109fa

Browse files
committed
Merge pull request #1404 from mdboom/pyside_crash
PySide segfaults immediately on Linux
2 parents 5c7625a + 4fcb974 commit d5109fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/backends/backend_qt4.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,7 @@ def set_message( self, s ):
603603

604604
def set_cursor( self, cursor ):
605605
if DEBUG: print('Set cursor' , cursor)
606-
QtGui.QApplication.restoreOverrideCursor()
607-
QtGui.QApplication.setOverrideCursor( QtGui.QCursor( cursord[cursor] ) )
606+
self.canvas.manager.window.setCursor(cursord[cursor])
608607

609608
def draw_rubberband( self, event, x0, y0, x1, y1 ):
610609
height = self.canvas.figure.bbox.height

0 commit comments

Comments
 (0)
0