Correct LegendItem addItem to use next available row

This commit is contained in:
Luke Campagnola 2014-07-06 11:00:38 -04:00
parent 26730ad947
commit ed0b95602a

View File

@ -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)