Skip to content

Commit

Permalink
Bugs
Browse files Browse the repository at this point in the history
Fixed bug where manual mask size was not being used (I had defined
minGrad in class and locally)
Fixed typo
  • Loading branch information
JJPPeters committed May 23, 2016
1 parent 9af1bba commit 53af354
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ void MainWindow::on_actionGPA_triggered()

minGrad = GPAstrain->getGVectors();

AcceptGVector(minGrad);
AcceptGVector();
}

void MainWindow::AcceptGVector(double minGrad)
void MainWindow::AcceptGVector()
{
bool happy = false;
// I hate myself for this loop, but it is to avoid recursion with the manual entry
Expand All @@ -267,7 +267,7 @@ void MainWindow::AcceptGVector(double minGrad)
QMessageBox msgBox;
msgBox.setWindowTitle(tr("GPA"));
msgBox.setText(tr("Accept mask size?"));
msgBox.setInformativeText(tr("(Solid Lline)"));
msgBox.setInformativeText(tr("(Solid Line)"));

QAbstractButton *btnManual = msgBox.addButton(tr("Manual"), QMessageBox::ActionRole);
QAbstractButton *btnRadius = msgBox.addButton(tr("Smallest g"), QMessageBox::ActionRole);
Expand Down Expand Up @@ -325,7 +325,7 @@ void MainWindow::clickGVector(QMouseEvent *event)
ui->fftPlot->DrawCircle(0, 0, Qt::red, QBrush(Qt::NoBrush), minGrad / 2);
ui->fftPlot->DrawCircle(0, 0);

AcceptGVector(minGrad);
AcceptGVector();
}

void MainWindow::clickBraggSpot(QMouseEvent *event)
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private slots:

void updateOtherPlot(int index, int side, bool rePlot = true);

void AcceptGVector(double minGrad);
void AcceptGVector();

};

Expand Down

0 comments on commit 53af354

Please sign in to comment.