diff options
author | Neil <nyamatongwe@gmail.com> | 2017-06-22 14:52:11 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-06-22 14:52:11 +1000 |
commit | d077164510233d9e36a2632437e51d87227371e9 (patch) | |
tree | 517277e88723232359658f35340df0b7ab8a751f /src/MarginView.cxx | |
parent | f23577f2d541f1f378095014e4a5491f45906f01 (diff) | |
download | scintilla-mirror-d077164510233d9e36a2632437e51d87227371e9.tar.gz |
Cast between Sci_Position.h types used for lexers and Position.h types used in
core to allow the Sci_Position.h types to widen to 64-bits.
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r-- | src/MarginView.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx index 7ecc85c7b..cab0ed02c 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -248,7 +248,8 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, } if (highlightDelimiter.isEnabled) { Sci::Line lastLine = model.cs.DocFromDisplay(topLine + model.LinesOnScreen()) + 1; - model.pdoc->GetHighlightDelimiters(highlightDelimiter, model.pdoc->LineFromPosition(model.sel.MainCaret()), lastLine); + model.pdoc->GetHighlightDelimiters(highlightDelimiter, + static_cast<Sci::Line>(model.pdoc->LineFromPosition(model.sel.MainCaret())), lastLine); } } |