Fixed an issue in the snapshot tool. maintenance release-17.11.1

Sat, 18 Nov 2017 19:28:37 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 18 Nov 2017 19:28:37 +0100
branch
maintenance
changeset 5983
a604749f4fcc
parent 5982
af0d2f9dfa21
child 5985
ab851fd69434

Fixed an issue in the snapshot tool.
(grafted from cf64d523f23387367624ac1ac7286e5ba593596d)

Snapshot/SnapshotRegionGrabber.py file | annotate | diff | comparison | revisions
--- a/Snapshot/SnapshotRegionGrabber.py	Fri Nov 17 18:51:40 2017 +0100
+++ b/Snapshot/SnapshotRegionGrabber.py	Sat Nov 18 19:28:37 2017 +0100
@@ -34,9 +34,9 @@
     painter.setPen(Qt.NoPen)
     painter.setBrush(outline)
     painter.drawRect(rect)
-    if fill.isValid():
+    if fill is not None and fill.isValid():
         painter.setClipping(False)
-        painter.setBrush(fill or QColor())
+        painter.setBrush(fill)
         painter.drawRect(rect.adjusted(1, 1, -1, -1))
     painter.restore()
 

eric ide

mercurial