Skip to content
Snippets Groups Projects
Commit 5ff2de85 authored by Verena Reimund's avatar Verena Reimund
Browse files

... and corrections for sort x axis implementation

Refs #22197
parent 808fe7e1
No related branches found
No related tags found
No related merge requests found
...@@ -433,16 +433,15 @@ MatrixWorkspace_sptr Stitch1D::sortXAxis(MatrixWorkspace_sptr &inWS) { ...@@ -433,16 +433,15 @@ MatrixWorkspace_sptr Stitch1D::sortXAxis(MatrixWorkspace_sptr &inWS) {
vecdx[l] = (++it)->second; vecdx[l] = (++it)->second;
++l; ++l;
} }
for (size_t i = 0; i < inWS->getNumberHistograms(); ++i) { auto x = make_cow<HistogramX>(std::move(vecx));
auto x = make_cow<HistogramX>(std::move(vecx)); auto y = make_cow<HistogramY>(std::move(vecy));
auto y = make_cow<HistogramY>(std::move(vecy)); auto e = make_cow<HistogramE>(std::move(vece));
auto e = make_cow<HistogramE>(std::move(vece)); inWS->setSharedX(i, x);
inWS->setSharedY(i, y);
inWS->setSharedE(i, e);
if (inWS->hasDx(i)) {
auto dx = make_cow<HistogramDx>(std::move(vecdx)); auto dx = make_cow<HistogramDx>(std::move(vecdx));
inWS->setSharedX(i, x); inWS->setSharedDx(i, dx);
inWS->setSharedY(i, y);
inWS->setSharedE(i, e);
if (inWS->hasDx(i))
inWS->setSharedDx(i, dx);
} }
} }
return inWS; return inWS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment