]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextctrl.cpp
Font (possible) fix
[wxWidgets.git] / src / richtext / richtextctrl.cpp
index 732a30dd8ef88e8b0e7a559048210ff4bc812a6d..297a3dea4f1252fad8038099e9ca971b74470966 100644 (file)
@@ -218,6 +218,9 @@ void wxRichTextCtrl::Clear()
 /// Painting
 void wxRichTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
 {
+    if (GetCaret())
+        GetCaret()->Hide();
+
     {
         wxBufferedPaintDC dc(this, m_bufferBitmap);
         //wxLogDebug(wxT("OnPaint"));
@@ -245,6 +248,10 @@ void wxRichTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
         
         GetBuffer().Draw(dc, GetBuffer().GetRange(), GetSelectionRange(), drawingArea, 0 /* descent */, 0 /* flags */);
     }
+
+    if (GetCaret())
+        GetCaret()->Show();
+
     PositionCaret();
 }