From b8a4b96243a3fe992c6c4840c69c16fbc3b07a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Mon, 31 Aug 2020 16:45:20 +0200 Subject: [PATCH] Create underlying bitmap for caret when it is explicitly created wxCaret::Create implies a size change, so call DoSize to initialize the underlying wxBitmap. --- include/wx/caret.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/wx/caret.h b/include/wx/caret.h index e6e9728ff8..b625b5f0ac 100644 --- a/include/wx/caret.h +++ b/include/wx/caret.h @@ -153,6 +153,7 @@ protected: m_window = window; m_width = width; m_height = height; + DoSize(); return true; }