mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix crash in table print crash
sizeof(array) is the total size in bytes, not the number of elements... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5506fa4b38
commit
8f58faf431
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ void PrintLayout::printTable()
|
|||
int tableHeight = 0, lastAccIndex = 0, rowH, accH, headings;
|
||||
bool isHeading = false;
|
||||
|
||||
for (int pass = 0; pass < sizeof(passes); pass++) {
|
||||
for (int pass = 0; pass < sizeof(passes) / sizeof(passes[0]); pass++) {
|
||||
progress = headings = accH = 0;
|
||||
total = model.rows - lastAccIndex;
|
||||
for (int i = lastAccIndex; i < model.rows; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue