Skip to content

Commit

Permalink
Include pointScaleFactor into the equality method of LayoutMetrics
Browse files Browse the repository at this point in the history
Summary:
Previously the pointScaleFactor field was not being compared properly in LayoutMetrics equality method.
This diff fixes that

Reviewed By: shergin

Differential Revision: D15303555

fbshipit-source-id: 8863e9e1fbad15b43400afc32b97bf6d252cbe55
  • Loading branch information
mdvacca authored and facebook-github-bot committed May 10, 2019
1 parent 1840738 commit ac9195a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactCommon/fabric/core/layout/LayoutMetrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct LayoutMetrics {
rhs.borderWidth,
rhs.displayType,
rhs.layoutDirection,
this->pointScaleFactor);
rhs.pointScaleFactor);
}

bool operator!=(const LayoutMetrics &rhs) const {
Expand Down

0 comments on commit ac9195a

Please sign in to comment.