aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/ViewStyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 2b87c8a51..387070ae9 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -429,7 +429,7 @@ int ViewStyle::ExternalMarginWidth() const {
int ViewStyle::MarginFromLocation(Point pt) const {
int margin = -1;
- int x = textStart - fixedColumnWidth;
+ int x = marginInside ? 0 : -fixedColumnWidth;
for (size_t i = 0; i < ms.size(); i++) {
if ((pt.x >= x) && (pt.x < x + ms[i].width))
margin = static_cast<int>(i);