From e7cb60740dbbfdb5d472426d291014f410f7e176 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 8 Jul 2009 01:00:21 +0000 Subject: Fixed problem where rectangular selections in virtual space were calculated with wrong style so did not match the mouse position. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(vs.styles[ll->EndLineStyle()].spaceWidth); return pt; } -- cgit v1.2.3