File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -733,6 +733,7 @@ void TableBrowser::modifyFormat(std::function<void(CondFormat&)> changeFunction)
733
733
void TableBrowser::updateRecordsetLabel ()
734
734
{
735
735
// Get all the numbers, i.e. the number of the first row and the last row as well as the total number of rows
736
+ // Internal row numbers start at 0, but we want to show them starting at 1.
736
737
int from = ui->dataTable ->verticalHeader ()->visualIndexAt (0 ) + 1 ;
737
738
int total = m_model->rowCount ();
738
739
int real_total = m_model->realRowCount ();
@@ -742,7 +743,7 @@ void TableBrowser::updateRecordsetLabel()
742
743
743
744
// Adjust visible rows to contents if necessary, and then take the new visible rows, which might have changed.
744
745
if (m_adjustRows) {
745
- for (int i=from; i<=to; i++)
746
+ for (int i=from- 1 ; i<=to- 1 ; i++)
746
747
ui->dataTable ->resizeRowToContents (i);
747
748
from = ui->dataTable ->verticalHeader ()->visualIndexAt (0 ) + 1 ;
748
749
to = from + ui->dataTable ->numVisibleRows () - 1 ;
You can’t perform that action at this time.
0 commit comments