summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-11-20 13:54:42 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-12-02 17:11:49 +0200
commit72e9388a61fa1f346043da594d33d2881f7aa329 (patch)
tree202daaeca239b98e878c4369213febd5f0464030 /src
parent614000256b709ff9d566740534f68c4cb795e0f2 (diff)
downloadqtlocation-mapboxgl-72e9388a61fa1f346043da594d33d2881f7aa329.tar.gz
[core] Add unit tests for Formatted class
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/style/expression/formatted.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/style/expression/formatted.cpp b/src/mbgl/style/expression/formatted.cpp
index 4069dd8a7c..9041bb3121 100644
--- a/src/mbgl/style/expression/formatted.cpp
+++ b/src/mbgl/style/expression/formatted.cpp
@@ -17,9 +17,8 @@ bool Formatted::operator==(const Formatted& other) const {
for (std::size_t i = 0; i < sections.size(); i++) {
const auto& thisSection = sections.at(i);
const auto& otherSection = other.sections.at(i);
- if (thisSection.text != otherSection.text ||
- thisSection.fontScale != otherSection.fontScale ||
- thisSection.fontStack != otherSection.fontStack ||
+ if (thisSection.text != otherSection.text || thisSection.image != otherSection.image ||
+ thisSection.fontScale != otherSection.fontScale || thisSection.fontStack != otherSection.fontStack ||
thisSection.textColor != otherSection.textColor) {
return false;
}