forked from osmocom/wireshark
Fix called C++ object pointer is null found by Clang Analyzer
Change-Id: I7d142ed60af8bb776ea732bf9ef94ad92bc23d70 Reviewed-on: https://code.wireshark.org/review/1061 Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
36a2ba2ce6
commit
725c2b3354
|
@ -1667,19 +1667,29 @@ void IOGraph::setPlotStyle(int style)
|
|||
}
|
||||
switch (style) {
|
||||
case psLine:
|
||||
graph_->setLineStyle(QCPGraph::lsLine);
|
||||
if (graph_) {
|
||||
graph_->setLineStyle(QCPGraph::lsLine);
|
||||
}
|
||||
break;
|
||||
case psImpulse:
|
||||
graph_->setLineStyle(QCPGraph::lsImpulse);
|
||||
if (graph_) {
|
||||
graph_->setLineStyle(QCPGraph::lsImpulse);
|
||||
}
|
||||
break;
|
||||
case psDot:
|
||||
graph_->setScatterStyle(QCPScatterStyle::ssDisc);
|
||||
if (graph_) {
|
||||
graph_->setScatterStyle(QCPScatterStyle::ssDisc);
|
||||
}
|
||||
break;
|
||||
case psSquare:
|
||||
graph_->setScatterStyle(QCPScatterStyle::ssSquare);
|
||||
if (graph_) {
|
||||
graph_->setScatterStyle(QCPScatterStyle::ssSquare);
|
||||
}
|
||||
break;
|
||||
case psDiamond:
|
||||
graph_->setScatterStyle(QCPScatterStyle::ssDiamond);
|
||||
if (graph_) {
|
||||
graph_->setScatterStyle(QCPScatterStyle::ssDiamond);
|
||||
}
|
||||
break;
|
||||
case psBar:
|
||||
case IOGraph::psStackedBar:
|
||||
|
|
Loading…
Reference in New Issue