Skip to content

Commit

Permalink
Fix Overview resize spanned column fencepost bug
Browse files Browse the repository at this point in the history
.. when calculating the spanned item's width there was a
   fencepost error in the logic causing the spanned item
   to be resized incorrectly.
  • Loading branch information
liversedge committed Jul 20, 2021
1 parent 0cc4a33 commit 806e907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/ChartSpace.cpp
Expand Up @@ -424,7 +424,7 @@ ChartSpace::updateGeometry()

// tile width is for the column, or for the columns it spans
int twidth = columns[column];
for(int c=1; c<items[i]->span && c<columns.count(); c++) twidth += columns[c+1] + SPACING;
for(int c=1; c<items[i]->span && (c+column)<columns.count(); c++) twidth += columns[column+c] + SPACING;

int theight = items[i]->deep * ROWHEIGHT;

Expand Down

0 comments on commit 806e907

Please sign in to comment.