Commit b85f2131 authored by Vincent Pinon's avatar Vincent Pinon

fix CID 1323686 (null dereference)

parent 79625941
......@@ -54,11 +54,11 @@ RotoWidget::RotoWidget(const QByteArray &data, Monitor *monitor, const ItemInfo
m_keyframeWidget = new SimpleKeyframeWidget(t, m_out - m_in, this);
l->addWidget(m_keyframeWidget);
MonitorEditWidget *edit = NULL; //monitor->getEffectEdit();
m_scene = edit->getScene();
m_scene->cleanup();
//MonitorEditWidget *edit = NULL; //monitor->getEffectEdit();
m_scene = NULL;//edit->getScene();
//m_scene->cleanup();
m_item = new SplineItem(QList <BPoint>(), NULL, m_scene);
m_item = NULL;/*new SplineItem(QList <BPoint>(), NULL, m_scene);
connect(m_item, SIGNAL(changed(bool)), this, SLOT(slotUpdateData(bool)));
connect(m_keyframeWidget, SIGNAL(positionChanged(int)), this, SLOT(slotPositionChanged(int)));
......@@ -70,6 +70,7 @@ RotoWidget::RotoWidget(const QByteArray &data, Monitor *monitor, const ItemInfo
setSpline(data, false);
setupTrackingListen(info);
m_scene->centerView();
*/
}
RotoWidget::~RotoWidget()
......@@ -79,7 +80,7 @@ RotoWidget::~RotoWidget()
delete m_keyframeWidget;
m_scene->removeItem(m_item);
if (m_scene) m_scene->removeItem(m_item);
delete m_item;
if (m_monitor) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment