diff options
author | nyamatongwe <unknown> | 2009-07-08 01:00:21 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-08 01:00:21 +0000 |
commit | e7cb60740dbbfdb5d472426d291014f410f7e176 (patch) | |
tree | 942e161c227bed45a77e265cc44602b0d91f3acc /src | |
parent | ec28516b5908c2aabd5c7381af65e79ef2dc7fff (diff) | |
download | scintilla-mirror-e7cb60740dbbfdb5d472426d291014f410f7e176.tar.gz |
Fixed problem where rectangular selections in virtual space were
calculated with wrong style so did not match the mouse position.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index f1210e8c9..d3a65dc57 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -392,7 +392,7 @@ Point Editor::LocationFromPosition(SelectionPosition pos) { } pt.x += vs.fixedColumnWidth - xOffset; } - pt.x += pos.VirtualSpace() * vs.spaceWidth; + pt.x += pos.VirtualSpace() * static_cast<int>(vs.styles[ll->EndLineStyle()].spaceWidth); return pt; } |