mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Summary Curve : Clear curve data if new data is invalid
This commit is contained in:
parent
f9cf5cdb3c
commit
4a9a9500b7
@ -404,7 +404,7 @@ void RimSummaryCurve::onLoadDataAndUpdate()
|
|||||||
firstAncestorOrThisOfType(plot);
|
firstAncestorOrThisOfType(plot);
|
||||||
bool isLogCurve = plot->isLogarithmicScaleEnabled(this->yAxis());
|
bool isLogCurve = plot->isLogarithmicScaleEnabled(this->yAxis());
|
||||||
|
|
||||||
if ( dateTimes.size())
|
if (dateTimes.size() > 0 && dateTimes.size() == values.size())
|
||||||
{
|
{
|
||||||
if (plot->timeAxisProperties()->timeMode() == RimSummaryTimeAxisProperties::DATE)
|
if (plot->timeAxisProperties()->timeMode() == RimSummaryTimeAxisProperties::DATE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user