diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index 1b5a5564..a66adec1 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -2543,7 +2543,7 @@ static void YGJustifyMainAxis( const bool isLastChild = i == collectedFlexItemsValues.endOfLineIndex - 1; // remove the gap if it is the last element of the line if (isLastChild) { - betweenMainDim -= gap; + betweenMainDim -= gap; } if (childStyle.display() == YGDisplayNone) { continue;