Correct LegendItem addItem to use next available row
This commit is contained in:
parent
26730ad947
commit
ed0b95602a
@ -75,7 +75,7 @@ class LegendItem(GraphicsWidget, GraphicsWidgetAnchor):
|
||||
sample = item
|
||||
else:
|
||||
sample = ItemSample(item)
|
||||
row = len(self.items)
|
||||
row = self.layout.rowCount()
|
||||
self.items.append((sample, label))
|
||||
self.layout.addItem(sample, row, 0)
|
||||
self.layout.addItem(label, row, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user