Skip to content

Commit

Permalink
Fixed typo. This refs #5801
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Sep 5, 2012
1 parent fdc3a46 commit 6232478
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/MantidQt/RefDetectorViewer/src/ImagePlotItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,19 +300,20 @@ void ImagePlotItem::draw( QPainter * painter,

coeff_left = (float(pix_x_max) - float(pix_x_min)) / (float(x_max) - float(x_min));
int tof_value;
float coeff_bottom_right;

//tof min
float TOFmin = float(myImage->getTOFmin());
if (TOFmin != 0) {
coeff_bottom_right = float(TOFmin) - float(x_min)
coeff_bottom_right = float(TOFmin) - float(x_min);
tof_value = coeff_left * coeff_bottom_right + float(pix_x_min);
painter->drawLine(QPoint(tof_value,pix_y_min), QPoint(tof_value,pix_y_max));
}

//tof max
float TOFmax = float(myImage->getTOFmax());
if (TOFmax != 0) {
coeff_bottom_right = float(TOFmax) - float(x_min)
coeff_bottom_right = float(TOFmax) - float(x_min);
tof_value = coeff_left * coeff_bottom_right + float(pix_x_min);
painter->drawLine(QPoint(tof_value,pix_y_min), QPoint(tof_value,pix_y_max));
}
Expand Down

0 comments on commit 6232478

Please sign in to comment.