diff options
| author | Neil <nyamatongwe@gmail.com> | 2022-02-28 09:53:32 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2022-02-28 09:53:32 +1100 |
| commit | 6b6fd97133587c3db5f7288e91b777261e640408 (patch) | |
| tree | 44dc9c992a2f435918d4ad20ccef383697dca53e /src/EditView.cxx | |
| parent | 3dfa29965387047f0ef085625970c52bc317a1e7 (diff) | |
| download | scintilla-mirror-6b6fd97133587c3db5f7288e91b777261e640408.tar.gz | |
Fix null dereference warning from Coverity 2021.12.
Diffstat (limited to 'src/EditView.cxx')
| -rw-r--r-- | src/EditView.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index 9f77b33f0..1e87fa294 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -774,8 +774,8 @@ Point EditView::LocationFromPosition(Surface *surface, const EditModel &model, S } } pt.y += (lineVisible - topLine) * vs.lineHeight; + pt.x += pos.VirtualSpace() * vs.styles[ll->EndLineStyle()].spaceWidth; } - pt.x += pos.VirtualSpace() * vs.styles[ll->EndLineStyle()].spaceWidth; return pt; } |
