Skip to content

Commit

Permalink
Refs #10301 Scale column defaults to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Oct 16, 2014
1 parent 4235aed commit 591827c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -27,7 +27,6 @@ namespace
colStitch->setPlotType(0);
colOptions->setPlotType(0);

TableRow row = ws->appendRow();
return ws;
}
}
Expand All @@ -44,7 +43,11 @@ namespace MantidQt
ReflBlankMainViewPresenter::ReflBlankMainViewPresenter(ReflMainView* view): ReflMainViewPresenter(view)
{
m_model = createWorkspace();

load();

//Start with one blank row
addRow();
}

//----------------------------------------------------------------------------------------------
Expand Down
Expand Up @@ -559,6 +559,9 @@ namespace MantidQt
row = m_model->insertRow(*rows.rbegin() + 1);
}

//Set the default scale to 1.0
m_model->Double(row, COL_SCALE) = 1.0;

//Set the group id of the new row
m_model->Int(row, COL_GROUP) = groupId;

Expand Down

0 comments on commit 591827c

Please sign in to comment.