From dbcb625cd0d727b0c1bdb001bab6504b2c21eda3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 13 Oct 2003 20:03:12 +0000 Subject: Hotspot fix from Simon. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index ddebb5ae2..c8efe0a6e 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4707,7 +4707,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b //Platform::DebugPrintf("Double click: %d - %d\n", anchor, currentPos); if (doubleClick) { NotifyDoubleClick(pt, shift); - if (PositionIsHotspot(newPos)) + if (PointIsHotspot(newPos)) NotifyHotSpotDoubleClicked(newPos, shift, ctrl, alt); } } else { // Single click @@ -4739,7 +4739,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b SetMouseCapture(true); selectionType = selLine; } else { - if (PositionIsHotspot(newPos)) { + if (PointIsHotspot(pt)) { NotifyHotSpotClicked(newPos, shift, ctrl, alt); } if (!shift) { -- cgit v1.2.3