Skip to content
Snippets Groups Projects
Commit ded79973 authored by Harry Jeffery's avatar Harry Jeffery
Browse files

Refs #11094 Resolve Coverity issues in showPlotAssociations

parent f16b0cd7
No related branches found
No related tags found
No related merge requests found
...@@ -6473,7 +6473,11 @@ AssociationsDialog* ApplicationWindow::showPlotAssociations(int curve) ...@@ -6473,7 +6473,11 @@ AssociationsDialog* ApplicationWindow::showPlotAssociations(int curve)
if (!w) if (!w)
return 0; return 0;
   
Graph *g = dynamic_cast<MultiLayer*>(w)->activeGraph(); auto ml = dynamic_cast<MultiLayer*>(w);
if(!ml)
return 0;
Graph *g = ml->activeGraph();
if (!g) if (!g)
return 0; return 0;
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment