Skip to content

Commit

Permalink
Refs #5010: fix import sample logs showing two windows
Browse files Browse the repository at this point in the history
and removing repeated rows
  • Loading branch information
Janik Zikovsky committed Mar 22, 2012
1 parent afbd23b commit 61b119e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ MantidSampleLogDialog::MantidSampleLogDialog(const QString & wsname, MantidUI* m
filterStatus = new QRadioButton("Status");
filterPeriod = new QRadioButton("Period");
filterStatusPeriod = new QRadioButton("Status + Period");
filterStatusPeriod->setChecked(true);
filterNone->setChecked(true);

QVBoxLayout *vbox = new QVBoxLayout;
vbox->addWidget(filterNone);
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/src/Mantid/MantidUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,7 @@ void MantidUI::importNumSeriesLog(const QString &wsName, const QString &logname,

//Get a map of time/value. This greatly speeds up display.
// NOTE: valueAsMap() skips repeated values.
std::map<DateAndTime, double> time_value_map = flt.data()->valueAsMap();
std::map<DateAndTime, double> time_value_map = flt.data()->valueAsCorrectMap();
int rowcount = static_cast<int>(time_value_map.size());
int colCount = 2;
Table* t = new Table(appWindow()->scriptingEnv(), rowcount, colCount, "", appWindow(), 0);
Expand Down

0 comments on commit 61b119e

Please sign in to comment.