Subversion Repositories public iLand

Rev

Rev 744 | Rev 774 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 744 Rev 753
Line 182... Line 182...
182
    if (!dbg_str.isEmpty()) {
182
    if (!dbg_str.isEmpty()) {
183
        if (dbg_str == "debugstamp") {
183
        if (dbg_str == "debugstamp") {
184
            qDebug() << "debug_tree = debugstamp: try touching all trees...";
184
            qDebug() << "debug_tree = debugstamp: try touching all trees...";
185
            // try to force an error if a stamp is invalid
185
            // try to force an error if a stamp is invalid
186
            AllTreeIterator at(GlobalSettings::instance()->model());
186
            AllTreeIterator at(GlobalSettings::instance()->model());
187
            double total_offset;
-
 
-
 
187
            double total_offset=0.;
188
            while (Tree *t=at.next()) {
188
            while (Tree *t=at.next()) {
189
                total_offset += t->stamp()->offset();
189
                total_offset += t->stamp()->offset();
190
                if (!GlobalSettings::instance()->model()->grid()->isIndexValid(t->positionIndex()))
190
                if (!GlobalSettings::instance()->model()->grid()->isIndexValid(t->positionIndex()))
191
                    qDebug() << "evaluateDebugTrees: debugstamp: invalid position found!";
191
                    qDebug() << "evaluateDebugTrees: debugstamp: invalid position found!";
192
            }
192
            }