From 7356159f76b9207583e4f9360a35277eaeaa7eb7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 11 Jul 2012 09:52:46 +1000 Subject: Fix margin click so clicking on first pixel of margin causes a notification. From John Vella. --- 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 f7ecd743f..cd72953ae 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4438,7 +4438,7 @@ bool Editor::NotifyMarginClick(Point pt, bool shift, bool ctrl, bool alt) { int marginClicked = -1; int x = 0; for (int margin = 0; margin < ViewStyle::margins; margin++) { - if ((pt.x > x) && (pt.x < x + vs.ms[margin].width)) + if ((pt.x >= x) && (pt.x < x + vs.ms[margin].width)) marginClicked = margin; x += vs.ms[margin].width; } -- cgit v1.2.3