From 4593196b4f73c0a1cd0dbe33477149e1e8d2e893 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 5 Sep 2014 14:29:44 +1000 Subject: Bug [#1654]. Missing cast in PositionIsHotspot. From Mat Berchtold. --- 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 d298a8a5d..8f0f43b08 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4276,7 +4276,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b } bool Editor::PositionIsHotspot(int position) const { - return vs.styles[pdoc->StyleAt(position)].hotspot; + return vs.styles[static_cast(pdoc->StyleAt(position))].hotspot; } bool Editor::PointIsHotspot(Point pt) { -- cgit v1.2.3