Skip to content

Commit

Permalink
set validity limits for geotechnical parameters and fix table model
Browse files Browse the repository at this point in the history
  • Loading branch information
giadasan committed Jul 5, 2024
1 parent 2f4594b commit 15c9f29
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions agrolib/soilWidget/tabHorizons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,14 +462,15 @@ void TabHorizons::checkComputedValues(int horizonNum)
tableModel->item(horizonNum,5)->setBackground(Qt::yellow);
}

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

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

}
Expand Down

0 comments on commit 15c9f29

Please sign in to comment.