Skip to content

Commit

Permalink
Ui-QT: fixed an issue, where resizing of the geometry could lead to c…
Browse files Browse the repository at this point in the history
…rashes.

The cell filters needed to be reset after setting n_cell.
  • Loading branch information
M. Sallermann authored and M. Sallermann committed Jun 16, 2021
1 parent b5351e5 commit 3be348e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui-cpp/src/GeometryWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ void GeometryWidget::setNCells()
this->lineEdit_n_cells_c->text().toInt() };
Geometry_Set_N_Cells( this->state.get(), n_cells );

this->spinWidget->setCellFilter(0, n_cells[0]-1, 0, n_cells[1]-1, 0, n_cells[2]-1);

// Update geometry and arrays in SpinWidget
this->spinWidget->initializeGL();
this->spinWidget->updateData();
Expand Down

0 comments on commit 3be348e

Please sign in to comment.