Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Stop testing for QString, fixes AttributeError in PySide
  • Loading branch information
mspacek committed Aug 22, 2013
commit cea9000b526ea7bc8e60e15aa4777701267268ce
3 changes: 1 addition & 2 deletions lib/matplotlib/backends/qt4_editor/formlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def col2hex(color):
def to_qcolor(color):
"""Create a QColor from a matplotlib color"""
qcolor = QtGui.QColor()
if isinstance(color, QtCore.QString):
color = str(color)
color = str(color)
try:
color = col2hex(color)
except ValueError:
Expand Down