Changeset 8f58faf in subsurface


Ignore:
Timestamp:
Dec 6, 2013, 9:30:39 AM (4 years ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
Mtest, android_test, dcDownload, foratdotde, gitMerge, gitdebug, gitpictures, ios, master, mergeKirigamiPort, pictimeshift, resolutionIndependence, spinner, testTomaz, testing, v4.0-branch, v4.0.3-branch, v4.2-branch, v4.4-branch, v4.5-branch
Children:
bfe5ccda
Parents:
5506fa4
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qt-ui/printlayout.cpp

    r5506fa4 r8f58faf  
    342342        bool isHeading = false;
    343343
    344         for (int pass = 0; pass < sizeof(passes); pass++) {
     344        for (int pass = 0; pass < sizeof(passes) / sizeof(passes[0]); pass++) {
    345345                progress = headings = accH = 0;
    346346                total = model.rows - lastAccIndex;
Note: See TracChangeset for help on using the changeset viewer.