From 1e5c4461cf159b5ed14b423babdaecd6d109f96c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 14 Dec 2003 03:17:29 +0000 Subject: Patch from John Ehresman to fix hotspot crash. --- 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 9b7522550..9878182c2 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4835,7 +4835,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b } bool Editor::PositionIsHotspot(int position) { - return vs.styles[pdoc->StyleAt(position)].hotspot; + return vs.styles[pdoc->StyleAt(position) & pdoc->stylingBitsMask].hotspot; } bool Editor::PointIsHotspot(Point pt) { -- cgit v1.2.3