Skip to content

Commit

Permalink
fix soil model table
Browse files Browse the repository at this point in the history
  • Loading branch information
giadasan committed Jul 5, 2024
1 parent 10f3360 commit 7ffb976
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions criteria1DWidget/tabIrrigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ void TabIrrigation::tooltipLAI(QPointF point, bool isShow)
}
}


// TODO Giada
void TabIrrigation::tooltipEvapTransp(QPointF point, bool isShow)
{
if (isShow)
Expand Down
9 changes: 4 additions & 5 deletions soilWidget/tabHorizons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,15 +462,14 @@ void TabHorizons::checkComputedValues(int horizonNum)
tableModel->item(horizonNum,5)->setBackground(Qt::yellow);
}

// for soil mechanics parameters just check if is missing
if (horizon->geotechnics.effectiveCohesion == NODATA)
if (abs(horizon->dbData.effectiveCohesion - horizon->effectiveCohesion) > EPSILON)
{
tableModel->item(horizonNum,11)->setBackground(Qt::red);
tableModel->item(horizonNum,11)->setBackground(Qt::yellow);
}

if (horizon->geotechnics.frictionAngle == NODATA)
if (abs(horizon->dbData.frictionAngle - horizon->frictionAngle) > EPSILON)
{
tableModel->item(horizonNum,12)->setBackground(Qt::red);
tableModel->item(horizonNum,12)->setBackground(Qt::yellow);
}

}
Expand Down

0 comments on commit 7ffb976

Please sign in to comment.