mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 20:36:15 +00:00
Clean up signedness confusion in diveprofileitem.cpp
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4156bc3651
commit
28100e8b7e
1 changed files with 2 additions and 2 deletions
|
@ -666,7 +666,7 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex &topLeft, const QMo
|
|||
if (displayed_dive.dc.divemode == CCR)
|
||||
o2mbar = GET_O2CYLINDER_PRESSURE(entry);
|
||||
|
||||
if (entry->cylinderindex != last_index) {
|
||||
if ((int)entry->cylinderindex != last_index) {
|
||||
polygons.append(QPolygonF()); // this is the polygon that will be actually drawn on screen.
|
||||
last_index = entry->cylinderindex;
|
||||
}
|
||||
|
@ -742,7 +742,7 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex &topLeft, const QMo
|
|||
if (!mbar)
|
||||
continue;
|
||||
|
||||
if (cyl != entry->cylinderindex) { // Pressure value near the left hand edge of the profile - other cylinders:
|
||||
if (cyl != (int)entry->cylinderindex) { // Pressure value near the left hand edge of the profile - other cylinders:
|
||||
cyl = entry->cylinderindex; // For each other cylinder, write the gas lable and pressure
|
||||
if (!seen_cyl[cyl]) {
|
||||
plotPressureValue(mbar, entry->sec, alignVar, print_y_offset[cyl][1]);
|
||||
|
|
Loading…
Add table
Reference in a new issue