diff options
author | Karl Berry <karl@freefriends.org> | 2018-03-16 17:01:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-03-16 17:01:01 +0000 |
commit | 6bdf7e89f698c2bcf5c3d17bc130869b0637ad35 (patch) | |
tree | 5161ebbe8cf2cebc8a32715758be0e32d5ecf3a8 /Build/source/texk/dvisvgm/dvisvgm-src/src/RangeMap.cpp | |
parent | e69e90912037ff24c42325a1b87022ceef0066cf (diff) |
dvisvgm 2.3.4
git-svn-id: svn://tug.org/texlive/trunk@46983 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/RangeMap.cpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/RangeMap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/RangeMap.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/RangeMap.cpp index c96aa1029bf..ea5f8d64a6e 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/RangeMap.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/RangeMap.cpp @@ -125,11 +125,11 @@ void RangeMap::addRange (uint32_t cmin, uint32_t cmax, uint32_t vmin) { void RangeMap::adaptNeighbors (Ranges::iterator it) { if (it != _ranges.end()) { // adapt left neighbor - Ranges::iterator lit = it-1; // points to left neighbor - if (it != _ranges.begin() && it->min() <= lit->max()) { + if (it != _ranges.begin() && it->min() <= (it-1)->max()) { + Ranges::iterator lit = it-1; // points to left neighbor bool left_neighbor_valid = (it->min() > 0 && it->min()-1 >= lit->min()); - if (left_neighbor_valid) // is adapted left neighbor valid? - lit->max(it->min()-1); // => assign new max value + if (left_neighbor_valid) // is adapted left neighbor valid? + lit->max(it->min()-1); // => assign new max value if (!left_neighbor_valid || it->join(*lit)) it = _ranges.erase(lit); } |