mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 19:32:30 +12:00
Update corkDelegate.py
This commit is contained in:
parent
7d31628977
commit
161290686b
|
@ -384,6 +384,11 @@ class corkDelegate(QStyledItemDelegate):
|
||||||
|
|
||||||
# Draw Summary
|
# Draw Summary
|
||||||
# One line
|
# One line
|
||||||
|
#checking that textColor is actually defined before we use it
|
||||||
|
try:
|
||||||
|
textColor
|
||||||
|
except:
|
||||||
|
textColor = None
|
||||||
if lineSummary and textColor:
|
if lineSummary and textColor:
|
||||||
p.save()
|
p.save()
|
||||||
f = QFont(option.font)
|
f = QFont(option.font)
|
||||||
|
|
Loading…
Reference in a new issue