diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-22 17:21:20 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-22 17:21:20 +1100 |
commit | 0035079b6cf849dc5e2ae8face51fcfb99853efa (patch) | |
tree | aae706048fdadf44ec52a67882309fe8f77e5fd0 /src/PositionCache.cxx | |
parent | c6abfabd40bdec8adca1b6f534e56a5602ecb993 (diff) | |
download | scintilla-mirror-0035079b6cf849dc5e2ae8face51fcfb99853efa.tar.gz |
Use XYPOSITION for xStart parameter as it is only passed as XYPOSITION.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 418a4fef9..7e3459e5f 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -557,7 +557,7 @@ void BreakFinder::Insert(Sci::Position val) { } BreakFinder::BreakFinder(const LineLayout *ll_, const Selection *psel, Range lineRange_, Sci::Position posLineStart_, - int xStart, bool breakForSelection, const Document *pdoc_, const SpecialRepresentations *preprs_, const ViewStyle *pvsDraw) : + XYPOSITION xStart, bool breakForSelection, const Document *pdoc_, const SpecialRepresentations *preprs_, const ViewStyle *pvsDraw) : ll(ll_), lineRange(lineRange_), posLineStart(posLineStart_), @@ -572,7 +572,7 @@ BreakFinder::BreakFinder(const LineLayout *ll_, const Selection *psel, Range lin // Search for first visible break // First find the first visible character if (xStart > 0.0f) - nextBreak = ll->FindBefore(static_cast<XYPOSITION>(xStart), lineRange); + nextBreak = ll->FindBefore(xStart, lineRange); // Now back to a style break while ((nextBreak > lineRange.start) && (ll->styles[nextBreak] == ll->styles[nextBreak - 1])) { nextBreak--; |