Fix wrong order when exporting internal variables.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-09-09 16:40:04 +03:00
parent 8becb5aac4
commit 8aa5d2ca99

View File

@ -139,7 +139,7 @@ QDomElement VPatternRecipe::Measurements()
// Resore order
std::sort(patternMeasurements.begin(), patternMeasurements.end(),
[](const QSharedPointer<VMeasurement> &a, const QSharedPointer<VMeasurement> &b)
{return a->Index() > b->Index();});
{return a->Index() < b->Index();});
for(auto &m : patternMeasurements)
{
@ -178,7 +178,7 @@ QDomElement VPatternRecipe::Increments()
// Resore order
std::sort(patternIncrements.begin(), patternIncrements.end(),
[](const QSharedPointer<VIncrement> &a, const QSharedPointer<VIncrement> &b)
{return a->GetIndex() > b->GetIndex();});
{return a->GetIndex() < b->GetIndex();});
for(auto &incr : patternIncrements)
{
@ -201,7 +201,7 @@ QDomElement VPatternRecipe::PreviewCalculations()
// Resore order
std::sort(patternIncrements.begin(), patternIncrements.end(),
[](const QSharedPointer<VIncrement> &a, const QSharedPointer<VIncrement> &b)
{return a->GetIndex() > b->GetIndex();});
{return a->GetIndex() < b->GetIndex();});
for(auto &incr : patternIncrements)
{