mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-10 00:04:23 -04:00
remove unwanted ternary operator
This commit is contained in:
parent
ac0249e8bc
commit
f3f04a94d5
@ -63,7 +63,7 @@ bool QgsProjectTimeSettings::readXml( const QDomElement &element, const QgsReadW
|
|||||||
mTimeStepUnit = QgsUnitTypes::decodeTemporalUnit( element.attribute( QStringLiteral( "timeStepUnit" ), QgsUnitTypes::encodeUnit( QgsUnitTypes::TemporalHours ) ) );
|
mTimeStepUnit = QgsUnitTypes::decodeTemporalUnit( element.attribute( QStringLiteral( "timeStepUnit" ), QgsUnitTypes::encodeUnit( QgsUnitTypes::TemporalHours ) ) );
|
||||||
mTimeStep = element.attribute( QStringLiteral( "timeStep" ), "1" ).toDouble();
|
mTimeStep = element.attribute( QStringLiteral( "timeStep" ), "1" ).toDouble();
|
||||||
mFrameRate = element.attribute( QStringLiteral( "frameRate" ), "1" ).toDouble();
|
mFrameRate = element.attribute( QStringLiteral( "frameRate" ), "1" ).toDouble();
|
||||||
mCumulativeTemporalRange = element.attribute( QStringLiteral( "cumulativeTemporalRange" ), "0" ).toInt() == 1 ? true : false;
|
mCumulativeTemporalRange = element.attribute( QStringLiteral( "cumulativeTemporalRange" ), "0" ).toInt();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user