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
|
sample = item
|
||||||
else:
|
else:
|
||||||
sample = ItemSample(item)
|
sample = ItemSample(item)
|
||||||
row = len(self.items)
|
row = self.layout.rowCount()
|
||||||
self.items.append((sample, label))
|
self.items.append((sample, label))
|
||||||
self.layout.addItem(sample, row, 0)
|
self.layout.addItem(sample, row, 0)
|
||||||
self.layout.addItem(label, row, 1)
|
self.layout.addItem(label, row, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user