aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-07-08 01:00:21 +0000
committernyamatongwe <unknown>2009-07-08 01:00:21 +0000
commite7cb60740dbbfdb5d472426d291014f410f7e176 (patch)
tree942e161c227bed45a77e265cc44602b0d91f3acc /src
parentec28516b5908c2aabd5c7381af65e79ef2dc7fff (diff)
downloadscintilla-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.cxx2
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;
}