mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8409 NNC : Make sure user defined legend ranges work
This commit is contained in:
@@ -96,13 +96,14 @@ void RivElementVectorResultPartMgr::appendDynamicGeometryPartsToModel( cvf::Mode
|
||||
double characteristicCellSize = eclipseCase->characteristicCellSize();
|
||||
float arrowConstantScaling = 10.0 * result->sizeScale() * characteristicCellSize;
|
||||
|
||||
double min, max;
|
||||
result->mappingRange( min, max );
|
||||
|
||||
double maxAbsResult = 1.0;
|
||||
if ( min != cvf::UNDEFINED_DOUBLE && max != cvf::UNDEFINED_DOUBLE )
|
||||
{
|
||||
maxAbsResult = std::max( cvf::Math::abs( max ), cvf::Math::abs( min ) );
|
||||
double min, max;
|
||||
result->mappingRange( min, max );
|
||||
if ( min != cvf::UNDEFINED_DOUBLE && max != cvf::UNDEFINED_DOUBLE )
|
||||
{
|
||||
maxAbsResult = std::max( cvf::Math::abs( max ), cvf::Math::abs( min ) );
|
||||
}
|
||||
}
|
||||
|
||||
float arrowScaling = arrowConstantScaling / maxAbsResult;
|
||||
|
Reference in New Issue
Block a user