diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index 6982de0..781daa8 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -4888,7 +4888,9 @@ void QMyCustomPlot::s_DelSelectShiftLineFromPlot(QString strUuid, QString strSlf { TransparentDraggableLine *pDraggableLine = (TransparentDraggableLine *)m_SelectShiftLine; pDraggableLine->deleteRect(); + m_SelectShiftLine = nullptr; } + replot(); } //清除全部分段线 @@ -4914,7 +4916,9 @@ void QMyCustomPlot::s_DelAllShiftLineFromPlot(QString strUuid, QString strSlfNam pDraggableLine = (TransparentDraggableLine*)it.value(); it++; pDraggableLine->deleteRect(); + m_SelectShiftLine = nullptr; } + this->replot(); } //执行校正