Skip to content

Commit

Permalink
Fixed reuse of refinement area bug
Browse files Browse the repository at this point in the history
On successful performance of strain, repeating will ask user to "use
same area" for refinement for second g-vector, even if first g-vector
was not refined.
  • Loading branch information
JJPPeters committed May 23, 2016
1 parent 4efdbfa commit ecb82bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ void MainWindow::selectRefineArea()
auto rect = QMessageBox::information(this, tr("Refine"), tr("Use same area?"), QMessageBox::Yes | QMessageBox::No);
if (rect == QMessageBox::Yes)
{
xCorner.clear();
yCorner.clear();
doRefinement(top, left, bottom, right);
}
else
Expand Down

0 comments on commit ecb82bc

Please sign in to comment.