aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-05-09 10:15:13 +0000
committernyamatongwe <unknown>2003-05-09 10:15:13 +0000
commit94ceb4479a0ee5d6510fddfdf6625ed726836ba2 (patch)
treeb29ddab251041c49b1ae73cc0861ee4d240eb2fc /win32/PlatWin.cxx
parent8cc2540ec79052b5ba73364ac25d7145599d13b0 (diff)
downloadscintilla-mirror-94ceb4479a0ee5d6510fddfdf6625ed726836ba2.tar.gz
Fixed problem when missing reverse arrow cursor resource meant cursor disappeared over margin.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx6
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: