diff options
author | nyamatongwe <unknown> | 2003-05-09 10:15:13 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-05-09 10:15:13 +0000 |
commit | 94ceb4479a0ee5d6510fddfdf6625ed726836ba2 (patch) | |
tree | b29ddab251041c49b1ae73cc0861ee4d240eb2fc | |
parent | 8cc2540ec79052b5ba73364ac25d7145599d13b0 (diff) | |
download | scintilla-mirror-94ceb4479a0ee5d6510fddfdf6625ed726836ba2.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: |