| Revision | 47b58c5fbc6143cd7a3449df57d815e1ceb63a44 (tree) |
|---|---|
| Time | 2018-01-17 00:54:03 |
| Author | <exeal@user...> |
fixed: viewer.locations.updateTextHit free function.
| @@ -567,7 +567,7 @@ | ||
| 567 | 567 | const auto& b = *boost::const_begin(change.erasedRegion()), e = *boost::const_end(change.erasedRegion()); |
| 568 | 568 | if(h.characterIndex() >= b && h.characterIndex() < e) { // (D-2) or (D-3) |
| 569 | 569 | if(insertionPosition(document, h) < e) // (D-2) |
| 570 | - h = TextHit::leading(e); | |
| 570 | + h = TextHit::leading(b); | |
| 571 | 571 | else { // (D-3) |
| 572 | 572 | kernel::DocumentCharacterIterator i(document, b); |
| 573 | 573 | h = TextHit::trailing((--i).tell()); |