Skip to content

Commit

Permalink
Fixed Windows-only AttributeError bug in fire.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Jan 11, 2019
1 parent 8aa85f1 commit 867e45b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sharppy/viz/fire.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ def initUI(self):
self.lpad = 5; self.rpad = 5
self.tpad = 3; self.bpad = 3
self.os_mod = 0
if platform.system() == "Windows":
self.os_mod = self.label_metrics.descent()

self.barby = 0
self.wid = self.size().width()
self.hgt = self.size().height()
Expand All @@ -51,6 +48,9 @@ def initUI(self):
self.fosberg_metrics = QtGui.QFontMetrics( self.fosberg_font )
self.label_height = self.label_metrics.xHeight() + self.tpad
self.ylast = self.label_height
if platform.system() == "Windows":
self.os_mod = self.label_metrics.descent()

self.plotBitMap = QtGui.QPixmap(self.width()-2, self.height()-2)
self.plotBitMap.fill(self.bg_color)
self.plotBackground()
Expand Down

0 comments on commit 867e45b

Please sign in to comment.