diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-03-04 09:21:39 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-03-04 10:20:50 +0200 |
commit | 3bfdb110646f33953fe7c44a6f4db7cdbb540d6a (patch) | |
tree | debe16042c8eeac83a27e9608f5cca1127ef39e7 /platform | |
parent | 6802a2ec5c0bce57ac51462f123792f475c58419 (diff) | |
download | qtlocation-mapboxgl-3bfdb110646f33953fe7c44a6f4db7cdbb540d6a.tar.gz |
[core] Assign formatted section index to quads
Diffstat (limited to 'platform')
-rw-r--r-- | platform/default/src/mbgl/text/bidi.cpp | 2 | ||||
-rw-r--r-- | platform/qt/src/bidi.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/default/src/mbgl/text/bidi.cpp b/platform/default/src/mbgl/text/bidi.cpp index 32a3dc23ef..8e30017f5f 100644 --- a/platform/default/src/mbgl/text/bidi.cpp +++ b/platform/default/src/mbgl/text/bidi.cpp @@ -148,7 +148,7 @@ std::vector<StyledText> BiDi::processStyledText(const StyledText& input, std::se // Each time we see a change in style, render a reversed chunk // of everything since the last change std::size_t styleRunStart = logicalEnd; - uint8_t currentStyleIndex = styleIndices.at(styleRunStart - 1); + std::size_t currentStyleIndex = styleIndices.at(styleRunStart - 1); for (std::size_t i = logicalEnd - 1; i >= logicalStart; i--) { if (currentStyleIndex != styleIndices.at(i) || i == logicalStart) { std::size_t styleRunEnd = i == logicalStart ? i : i + 1; diff --git a/platform/qt/src/bidi.cpp b/platform/qt/src/bidi.cpp index 6b680a9769..a99398959a 100644 --- a/platform/qt/src/bidi.cpp +++ b/platform/qt/src/bidi.cpp @@ -41,7 +41,7 @@ std::vector<StyledText> BiDi::processStyledText(const StyledText& input, std::se for (std::size_t lineBreakPoint : lineBreakPoints) { transformedLines.emplace_back( input.first.substr(start, lineBreakPoint - start), - std::vector<uint8_t>(input.second.begin() + start, input.second.begin() + lineBreakPoint)); + std::vector<std::size_t>(input.second.begin() + start, input.second.begin() + lineBreakPoint)); start = lineBreakPoint; } |