From 8aa5d2ca995379ab86ce70054c4f45cfe354792f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 9 Sep 2019 16:40:04 +0300 Subject: [PATCH] Fix wrong order when exporting internal variables. --HG-- branch : develop --- src/libs/vformat/vpatternrecipe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/vformat/vpatternrecipe.cpp b/src/libs/vformat/vpatternrecipe.cpp index 447426e57..b37cf4aa4 100644 --- a/src/libs/vformat/vpatternrecipe.cpp +++ b/src/libs/vformat/vpatternrecipe.cpp @@ -139,7 +139,7 @@ QDomElement VPatternRecipe::Measurements() // Resore order std::sort(patternMeasurements.begin(), patternMeasurements.end(), [](const QSharedPointer &a, const QSharedPointer &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 &a, const QSharedPointer &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 &a, const QSharedPointer &b) - {return a->GetIndex() > b->GetIndex();}); + {return a->GetIndex() < b->GetIndex();}); for(auto &incr : patternIncrements) {