mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Source stepping and toolbar updates (#8866)
* Move layout options to separate toolbar * Enable stepping on quantities, remove special history curve stepping for now * Allow stepping ensembles and cases * Add step next/prev and add new sub plot
This commit is contained in:
@@ -67,14 +67,21 @@ RiuSummaryQuantityNameInfoProvider::RiuSummaryQuantityInfo
|
||||
{
|
||||
// Check for custom vector naming
|
||||
|
||||
std::string postfix = quantity.substr( quantity.size() - 5, 5 );
|
||||
std::string baseName = quantity.substr( 0, 5 );
|
||||
while ( baseName.back() == '_' )
|
||||
baseName.pop_back();
|
||||
|
||||
bool isDifference = ( postfix == "_DIFF" );
|
||||
|
||||
it = m_summaryToDescMap.find( baseName );
|
||||
|
||||
if ( it != m_summaryToDescMap.end() )
|
||||
{
|
||||
if ( isDifference )
|
||||
{
|
||||
return RiuSummaryQuantityInfo( it->second.category, it->second.longName + " Difference" );
|
||||
}
|
||||
return it->second;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user