Commit fd81f6bd authored by CABEL Tristan's avatar CABEL Tristan

plot2d call initialize instead of removing all columns

parent 9405409e
......@@ -594,9 +594,7 @@ void dtkVisualizationPlot2D::clearFields(void)
d->field_y->blockSignals(false);
d->fields_parameters.clear();
for(vtkIdType i=0; i < d->fields_table->GetNumberOfColumns(); ++i) {
d->fields_table->RemoveColumn(i);
}
d->fields_table->Initialize();
QMap<QString, dtkVisualizationPlot2DPrivate::FieldParameters >::const_iterator i = d->old_fields_param.constBegin();
while (i != d->old_fields_param.constEnd()) {
......
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