diff options
author | nyamatongwe <devnull@localhost> | 2003-05-09 10:15:13 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-05-09 10:15:13 +0000 |
commit | b4d2256f9ccf56efacbd84b3fbed1e846fb1853f (patch) | |
tree | b29ddab251041c49b1ae73cc0861ee4d240eb2fc | |
parent | 332d474e1199e3be84d5a20624c347218e222370 (diff) | |
download | scintilla-mirror-b4d2256f9ccf56efacbd84b3fbed1e846fb1853f.tar.gz |
Fixed problem when missing reverse arrow cursor resource meant cursor disappeared over margin.
-rw-r--r-- | win32/PlatWin.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 472c8b9a2..291d40fd9 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -839,7 +839,11 @@ void Window::SetCursor(Cursor curs) { hinstPlatformRes = ::GetModuleHandle("SciLexer"); if (!hinstPlatformRes) hinstPlatformRes = ::GetModuleHandle(NULL); - ::SetCursor(::LoadCursor(hinstPlatformRes, MAKEINTRESOURCE(IDC_MARGIN))); + HCURSOR hcursor = ::LoadCursor(hinstPlatformRes, MAKEINTRESOURCE(IDC_MARGIN)); + if (hcursor) + ::SetCursor(hcursor); + else + ::SetCursor(::LoadCursor(NULL,IDC_ARROW)); } break; case cursorArrow: |