Skip to content

Commit 6b8254c

Browse files
committed
[processing] fixed FixedTableDialog when there are 0 rows
1 parent 5a4a552 commit 6b8254c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/gui/FixedTablePanel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, param, parent=None):
5252
self.table[i].append('0')
5353

5454
self.leText.setText(
55-
self.tr('Fixed table %dx%d' % (len(param.cols), param.numRows)))
55+
self.tr('Fixed table %dx%d' % (param.numRows, len(param.cols))))
5656

5757
self.btnSelect.clicked.connect(self.showFixedTableDialog)
5858

@@ -63,4 +63,4 @@ def showFixedTableDialog(self):
6363
self.table = dlg.rettable
6464

6565
self.leText.setText(self.tr('Fixed table %dx%d' % (
66-
len(self.table), len(self.table[0]))))
66+
len(self.table), len(self.param.cols))))

0 commit comments

Comments
 (0)