From cc20a938e43074f0930a7348d1e5d489f3c5b41e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 23 Apr 2012 13:33:36 +1000 Subject: Bug #3519246. Stop allowing selection into virtual space for rectangular selection when virtual space set to SCVS_USERACCESSIBLE. --- 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 a6f638651..29266563a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6202,7 +6202,7 @@ void Editor::MouseLeave() { } static bool AllowVirtualSpace(int virtualSpaceOptions, bool rectangular) { - return ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0) + return (!rectangular && ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0)) || (rectangular && ((virtualSpaceOptions & SCVS_RECTANGULARSELECTION) != 0)); } -- cgit v1.2.3