From ad514a22d0b8be241f9f524aa9f4643887f60957 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 23 Jul 2000 05:53:11 +0000 Subject: Changed SCI_POSITIONFROMPOINT to take x,y parameters rather than a pointer to a POINT structure. --- src/Editor.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index f9cf12f9e..27dd57238 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3572,12 +3572,8 @@ long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) { Redraw(); break; - case SCI_POSITIONFROMPOINT: { - if (lParam == 0) - return 0; - Point *ppt = reinterpret_cast(lParam); - return PositionFromLocation(*ppt); - } + case SCI_POSITIONFROMPOINT: + return PositionFromLocation(Point(wParam, lParam)); case SCI_GOTOLINE: GoToLine(wParam); -- cgit v1.2.3