diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
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<Point *>(lParam); - return PositionFromLocation(*ppt); - } + case SCI_POSITIONFROMPOINT: + return PositionFromLocation(Point(wParam, lParam)); case SCI_GOTOLINE: GoToLine(wParam); |