Skip to content

Commit

Permalink
Refs #10674 Fix crash when loading blank matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Dec 4, 2014
1 parent 65ff2f3 commit ef33545
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/MantidPlot/src/Matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,9 @@ void Matrix::loadFromProject(const std::string& lines, ApplicationWindow* app, c
std::string dataLines;
tsv >> dataLines;
std::vector<std::string> dataVec, valVec;
boost::split(dataVec, dataLines, boost::is_any_of("\n"));

if(!dataLines.empty())
boost::split(dataVec, dataLines, boost::is_any_of("\n"));

for(auto lineIt = dataVec.begin(); lineIt != dataVec.end(); ++lineIt)
{
Expand Down

0 comments on commit ef33545

Please sign in to comment.