diff options
author | Neil <nyamatongwe@gmail.com> | 2016-12-09 09:30:17 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-12-09 09:30:17 +1100 |
commit | d56b12f17f91afc131a670a28c1e12ebb3028d70 (patch) | |
tree | babdbdb891808d1008264379199ab0250874a27f /src | |
parent | 82ee0a0a14f83b3d85e7298f82165667c77b9a34 (diff) | |
download | scintilla-mirror-d56b12f17f91afc131a670a28c1e12ebb3028d70.tar.gz |
Warning suppression and documentation of previous change 6082.
Diffstat (limited to 'src')
-rw-r--r-- | src/EditView.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index b2855eb97..5c622568b 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -671,7 +671,8 @@ SelectionPosition EditView::SPositionFromLocation(Surface *surface, const EditMo const XYPOSITION subLineStart = ll->positions[rangeSubLine.start]; if (subLine > 0) // Wrapped pt.x -= ll->wrapIndent; - const int positionInLine = ll->FindPositionFromX(pt.x + subLineStart, rangeSubLine, charPosition); + const int positionInLine = ll->FindPositionFromX(static_cast<XYPOSITION>(pt.x + subLineStart), + rangeSubLine, charPosition); if (positionInLine < rangeSubLine.end) { return SelectionPosition(model.pdoc->MovePositionOutsideChar(positionInLine + posLineStart, 1)); } |