Skip to content

Commit

Permalink
Fixed issue. This refs #5801
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Sep 10, 2012
1 parent 60e538f commit 0eb9552
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion Code/Mantid/MantidQt/ImageViewer/src/ImageDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,16 @@ void ImageDisplay::UpdateRange()
QRect display_rect;
GetDisplayRectangle( display_rect );
// range controls now determine
// the number of bins
// the number of bins
double min = total_x_min;
double max = total_x_max;
double step = (total_x_max - total_x_min)/2000;
range_handler->GetRange( min, max, step );

// std::cout << "In ImageDisplay::UpdateRange() ";
// std::cout


int n_bins = IVUtils::NumSteps( min, max, step );
if ( n_bins == 0 )
{
Expand Down
12 changes: 6 additions & 6 deletions Code/Mantid/MantidQt/RefDetectorViewer/src/IVConnections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ IVConnections::~IVConnections()
// std::cout << "IVConnections destructor called" << std::endl;

delete image_picker;
delete image_picker2;
delete image_picker2;
delete h_graph_picker;
delete v_graph_picker;
delete color_group;
Expand Down Expand Up @@ -334,11 +334,11 @@ void IVConnections::graph_range_changed()

void IVConnections::edit_manual_input()
{
std::cout << "inside edit_manual " << std::endl;
std::cout << "iv_ui->lineEdit_peakLeft->text(): ";
std::cout << QString::toStdString(iv_ui->lineEdit_peakLeft->displayText());
// std::cout << "peak left: " << yValue << std::endl;
image_display->setPeakLeft(10);
// std::cout << "inside edit_manual " << std::endl;
// std::cout << "iv_ui->lineEdit_peakLeft->text(): ";
// std::cout << QString::toStdString(iv_ui->lineEdit_peakLeft->displayText());
//// std::cout << "peak left: " << yValue << std::endl;
// image_display->setPeakLeft(10);

}

Expand Down

0 comments on commit 0eb9552

Please sign in to comment.