X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0290598f588681eb631c0a952a26c7637b8482d0..29ea4a290850e9ae79c258774fa22153a951ff7f:/samples/caret/caret.cpp diff --git a/samples/caret/caret.cpp b/samples/caret/caret.cpp index 00df1d0b0d..3f41e9b3ac 100644 --- a/samples/caret/caret.cpp +++ b/samples/caret/caret.cpp @@ -265,6 +265,8 @@ MyCanvas::MyCanvas( wxWindow *parent ) wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER ) { + m_text = (char *)NULL; + SetBackgroundColour(* wxWHITE); m_font = *wxNORMAL_FONT; @@ -282,8 +284,6 @@ MyCanvas::MyCanvas( wxWindow *parent ) m_xMargin = m_yMargin = 5; m_caret.Move(m_xMargin, m_yMargin); m_caret.Show(); - - m_text = (char *)NULL; } MyCanvas::~MyCanvas()