diff options
author | nyamatongwe <devnull@localhost> | 2009-07-08 01:00:21 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-07-08 01:00:21 +0000 |
commit | c6fefca9f746db86605e4a9c6a8b76423d570f0b (patch) | |
tree | 942e161c227bed45a77e265cc44602b0d91f3acc /src | |
parent | e8a546dc66099534a72bf536383628ce18626a03 (diff) | |
download | scintilla-mirror-c6fefca9f746db86605e4a9c6a8b76423d570f0b.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; } |