Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix drag-n-drop plotting to respect distribution flag. #97

Merged
merged 1 commit into from
Dec 10, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion Code/Mantid/MantidPlot/src/MultiLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,9 @@ void MultiLayer::dropOntoMatrixCurve(Graph *g, MantidMatrixCurve* originalCurve,
for( ; setIt != it.value().end(); ++setIt)
{
try {
new MantidMatrixCurve(it.key(),g,(*setIt),MantidMatrixCurve::Spectrum, errorBars); // The graph takes ownership
// If the current curve is plotted as a distribution then do so also here
new MantidMatrixCurve(it.key(),g,(*setIt),MantidMatrixCurve::Spectrum, errorBars,
originalCurve->isDistribution()); // The graph takes ownership
} catch (Mantid::Kernel::Exception::NotFoundError &) {
// Get here if workspace name is invalid - shouldn't be possible, but just in case
} catch (std::invalid_argument&) {
Expand Down