裂缝退出崩溃问题。
This commit is contained in:
parent
2b68607854
commit
4aed169d4a
|
|
@ -318,15 +318,15 @@ DraggableCrackItem::DraggableCrackItem(QCustomPlot *plot, Type type, const QColo
|
|||
|
||||
DraggableCrackItem::~DraggableCrackItem()
|
||||
{
|
||||
if (m_type == TypeA_Sine) {
|
||||
if (m_tracer1) m_plot->removeItem(m_tracer1);
|
||||
if (m_tracer2) m_plot->removeItem(m_tracer2);
|
||||
if (m_curve) m_plot->removeItem(m_curve);
|
||||
} else if (m_type == TypeB_Polyline) {
|
||||
clearLines();
|
||||
} else if (m_type == TypeC_Closed) {
|
||||
clearPolylineC();
|
||||
}
|
||||
// if (m_type == TypeA_Sine) {
|
||||
// if (m_tracer1) m_plot->removeItem(m_tracer1);
|
||||
// if (m_tracer2) m_plot->removeItem(m_tracer2);
|
||||
// if (m_curve) m_plot->removeItem(m_curve);
|
||||
// } else if (m_type == TypeB_Polyline) {
|
||||
// clearLines();
|
||||
// } else if (m_type == TypeC_Closed) {
|
||||
// clearPolylineC();
|
||||
// }
|
||||
if (s_activeItem == this) s_activeItem = nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user