mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Merge pull request #8461 from OPM/8460-plot-curve-fixes
Guard access to QtCharts objects that might be null Fix visibility of items in legend based on state in parent plot
This commit is contained in:
1 parent
8f75dcb29f
commit
5ff9f36448
6 files changed
+62
-12
No files matched your search
@@ -500,10 +500,12 @@ QString RimSummaryCurve::createCurveAutoName()
|
||||
std::vector<const RimSummaryNameHelper*> nameHelpers;
|
||||
{
|
||||
RimSummaryPlot* plot = nullptr;
|
||||
firstAncestorOrThisOfTypeAsserted( plot );
|
||||
auto nameHelper = plot->plotTitleHelper();
|
||||
|
||||
if ( nameHelper ) nameHelpers.push_back( nameHelper );
|
||||
firstAncestorOrThisOfType( plot );
|
||||
if ( plot )
|
||||
{
|
||||
auto nameHelper = plot->plotTitleHelper();
|
||||
if ( nameHelper ) nameHelpers.push_back( nameHelper );
|
||||
}
|
||||
}
|
||||
{
|
||||
RimSummaryMultiPlot* summaryMultiPlot = nullptr;
|
||||
|
||||
Reference in new issue
Block a user