Skip to content

Commit

Permalink
Made time ranges inclusive.
Browse files Browse the repository at this point in the history
Refs #10482
  • Loading branch information
DanNixon committed Nov 3, 2014
1 parent a4af130 commit 1723e5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/src/HistoryView.cpp
Expand Up @@ -179,7 +179,7 @@ void HistoryView::filterBetweenExecDate(Mantid::Kernel::DateAndTime start, Manti
Mantid::Kernel::DateAndTime algExecutionDate = it->getAlgorithmHistory()->executionDate();

// If the algorithm is outside of the time range, remove it and keep iterating
if(algExecutionDate < start || algExecutionDate >= end)
if(algExecutionDate < start || algExecutionDate > end)
{
it = m_historyItems.erase(it);
--it;
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/test/HistoryViewTest.h
Expand Up @@ -300,7 +300,7 @@ class HistoryViewTest : public CxxTest::TestSuite
TS_ASSERT_EQUALS(view.size(), 7);

// Filter by time with a start and end time
TS_ASSERT_THROWS_NOTHING( view.filterBetweenExecDate(DateAndTime(200, 0), DateAndTime(212, 0)) );
TS_ASSERT_THROWS_NOTHING( view.filterBetweenExecDate(DateAndTime(200, 0), DateAndTime(211, 0)) );
TS_ASSERT_EQUALS(view.size(), 3);

// Get algorithm list and compare results
Expand Down

0 comments on commit 1723e5a

Please sign in to comment.