Kaydet (Commit) 339cfd98 authored tarafından Miklos Vajna's avatar Miklos Vajna

vcl: handle NULL pCursor in Edit::ImplShowCursor()

I saw this happening on Writer shutdown.

Change-Id: Ib357d070f53ce0728a5b89f895b87fc42628834c
üst 245142ce
...@@ -1197,9 +1197,12 @@ void Edit::ImplShowCursor( bool bOnlyIfVisible ) ...@@ -1197,9 +1197,12 @@ void Edit::ImplShowCursor( bool bOnlyIfVisible )
const long nTextHeight = GetTextHeight(); const long nTextHeight = GetTextHeight();
const long nCursorPosY = ImplGetTextYPosition(); const long nCursorPosY = ImplGetTextYPosition();
pCursor->SetPos( Point( nCursorPosX, nCursorPosY ) ); if (pCursor)
pCursor->SetSize( Size( nCursorWidth, nTextHeight ) ); {
pCursor->Show(); pCursor->SetPos( Point( nCursorPosX, nCursorPosY ) );
pCursor->SetSize( Size( nCursorWidth, nTextHeight ) );
pCursor->Show();
}
} }
void Edit::ImplAlign() void Edit::ImplAlign()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment