Fix div-by-zero split sizing bug

history_view
Tyler Goodlet 2022-09-07 10:18:52 -04:00
parent 006190d227
commit a07367fae2
1 changed files with 1 additions and 7 deletions

View File

@ -416,18 +416,12 @@ class LinkedSplits(QWidget):
'''Set the proportion of space allocated for linked subcharts. '''Set the proportion of space allocated for linked subcharts.
''' '''
ln = len(self.subplots) ln = len(self.subplots) or 1
# proportion allocated to consumer subcharts # proportion allocated to consumer subcharts
if not prop: if not prop:
prop = 3/8*5/8 prop = 3/8*5/8
# if ln < 2:
# prop = 3/8*5/8
# elif ln >= 2:
# prop = 3/8
h = self.height() h = self.height()
histview_h = h * 5/16 histview_h = h * 5/16
h = h - histview_h h = h - histview_h