mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2917 Vector Selection Dialog: Fix missing selection text
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include "RifSummaryReaderInterface.h"
|
#include "RifSummaryReaderInterface.h"
|
||||||
#include "RimSummaryCase.h"
|
#include "RimSummaryCase.h"
|
||||||
|
#include "RimSummaryCaseCollection.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
@@ -116,7 +117,8 @@ QString RiaSummaryCurveDefinition::curveDefinitionText() const
|
|||||||
{
|
{
|
||||||
QString caseName;
|
QString caseName;
|
||||||
if (summaryCase() ) caseName = summaryCase()->caseName();
|
if (summaryCase() ) caseName = summaryCase()->caseName();
|
||||||
|
else if (ensemble()) caseName = ensemble()->name();
|
||||||
|
|
||||||
return RiaSummaryCurveDefinition::curveDefinitionText(caseName, summaryAddress());
|
return RiaSummaryCurveDefinition::curveDefinitionText(caseName, summaryAddress());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ void RiuSummaryCurveDefSelectionDialog::setEnsembleAndAddress(RimSummaryCaseColl
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
std::vector<RiaSummaryCurveDefinition> RiuSummaryCurveDefSelectionDialog::curveSelection() const
|
std::vector<RiaSummaryCurveDefinition> RiuSummaryCurveDefSelectionDialog::curveSelection() const
|
||||||
{
|
{
|
||||||
return summaryAddressSelection()->allCurveDefinitionsFromSelection();
|
return summaryAddressSelection()->selection();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -142,7 +142,7 @@ RiuSummaryCurveDefSelection* RiuSummaryCurveDefSelectionDialog::summaryAddressSe
|
|||||||
void RiuSummaryCurveDefSelectionDialog::updateLabel()
|
void RiuSummaryCurveDefSelectionDialog::updateLabel()
|
||||||
{
|
{
|
||||||
QString curveAddressText;
|
QString curveAddressText;
|
||||||
std::vector<RiaSummaryCurveDefinition> sumCasePairs = this->summaryAddressSelection()->allCurveDefinitionsFromSelection();
|
std::vector<RiaSummaryCurveDefinition> sumCasePairs = this->summaryAddressSelection()->selection();
|
||||||
if (sumCasePairs.size() == 1)
|
if (sumCasePairs.size() == 1)
|
||||||
{
|
{
|
||||||
curveAddressText = sumCasePairs.front().curveDefinitionText();
|
curveAddressText = sumCasePairs.front().curveDefinitionText();
|
||||||
|
|||||||
Reference in New Issue
Block a user