Skip to content

Commit

Permalink
Fixes crash with show detectors for some files.
Browse files Browse the repository at this point in the history
Put an efixed value in column values even if no detector present.
Refs #9675
  • Loading branch information
martyngigg committed Jun 24, 2014
1 parent 8d96d18 commit aff9723
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Code/Mantid/MantidPlot/src/Mantid/MantidUI.cpp
Expand Up @@ -1178,7 +1178,7 @@ Table* MantidUI::createDetectorTable(const QString & wsName, const Mantid::API::
}

colValues << QVariant(phi) // rtp
<< QVariant(isMonitor); // monitor
<< QVariant(isMonitor); // monitor
}
catch(...)
{
Expand All @@ -1189,8 +1189,10 @@ Table* MantidUI::createDetectorTable(const QString & wsName, const Mantid::API::
{
colValues << QVariant(dataY0) << QVariant(dataE0); // data
}
colValues << QVariant("0") << QVariant("0") << QVariant("0") // rtp
<< QVariant("n/a"); // monitor
colValues << QVariant("0") << QVariant("0") //rt
<< QVariant("0") // efixed
<< QVariant("0") // rtp
<< QVariant("n/a"); // monitor
}// End catch for no spectrum

for(int col = 0; col < ncols; ++col)
Expand Down

0 comments on commit aff9723

Please sign in to comment.