Fix wrong order when exporting internal variables.
--HG-- branch : develop
This commit is contained in:
parent
8becb5aac4
commit
8aa5d2ca99
|
@ -139,7 +139,7 @@ QDomElement VPatternRecipe::Measurements()
|
||||||
// Resore order
|
// Resore order
|
||||||
std::sort(patternMeasurements.begin(), patternMeasurements.end(),
|
std::sort(patternMeasurements.begin(), patternMeasurements.end(),
|
||||||
[](const QSharedPointer<VMeasurement> &a, const QSharedPointer<VMeasurement> &b)
|
[](const QSharedPointer<VMeasurement> &a, const QSharedPointer<VMeasurement> &b)
|
||||||
{return a->Index() > b->Index();});
|
{return a->Index() < b->Index();});
|
||||||
|
|
||||||
for(auto &m : patternMeasurements)
|
for(auto &m : patternMeasurements)
|
||||||
{
|
{
|
||||||
|
@ -178,7 +178,7 @@ QDomElement VPatternRecipe::Increments()
|
||||||
// Resore order
|
// Resore order
|
||||||
std::sort(patternIncrements.begin(), patternIncrements.end(),
|
std::sort(patternIncrements.begin(), patternIncrements.end(),
|
||||||
[](const QSharedPointer<VIncrement> &a, const QSharedPointer<VIncrement> &b)
|
[](const QSharedPointer<VIncrement> &a, const QSharedPointer<VIncrement> &b)
|
||||||
{return a->GetIndex() > b->GetIndex();});
|
{return a->GetIndex() < b->GetIndex();});
|
||||||
|
|
||||||
for(auto &incr : patternIncrements)
|
for(auto &incr : patternIncrements)
|
||||||
{
|
{
|
||||||
|
@ -201,7 +201,7 @@ QDomElement VPatternRecipe::PreviewCalculations()
|
||||||
// Resore order
|
// Resore order
|
||||||
std::sort(patternIncrements.begin(), patternIncrements.end(),
|
std::sort(patternIncrements.begin(), patternIncrements.end(),
|
||||||
[](const QSharedPointer<VIncrement> &a, const QSharedPointer<VIncrement> &b)
|
[](const QSharedPointer<VIncrement> &a, const QSharedPointer<VIncrement> &b)
|
||||||
{return a->GetIndex() > b->GetIndex();});
|
{return a->GetIndex() < b->GetIndex();});
|
||||||
|
|
||||||
for(auto &incr : patternIncrements)
|
for(auto &incr : patternIncrements)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user