Suppressed double hiding/deletion of caret which can cause the caret to go missing from a different window that's currently focused
This commit is contained in:
@@ -705,6 +705,8 @@ bool ScintillaWX::CreateSystemCaret() {
|
||||
|
||||
bool ScintillaWX::DestroySystemCaret() {
|
||||
#ifdef __WXMSW__
|
||||
if (sysCaretBitmap)
|
||||
{
|
||||
::HideCaret(GetHwndOf(stc));
|
||||
BOOL retval = ::DestroyCaret();
|
||||
if (sysCaretBitmap) {
|
||||
@@ -712,6 +714,9 @@ bool ScintillaWX::DestroySystemCaret() {
|
||||
sysCaretBitmap = 0;
|
||||
}
|
||||
return retval != 0;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user