Only draw if inside client rectangle

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-10-19 13:54:32 +00:00
parent 5d7836c47d
commit 011b3dcbef
3 changed files with 29 additions and 24 deletions

View File

@@ -231,7 +231,7 @@ void wxRichTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
wxRegion dirtyRegion = GetUpdateRegion();
wxRect availableSpace(wxPoint(0, 0), GetClientSize());
wxRect availableSpace(GetLogicalPoint(wxPoint(0, 0)), GetClientSize());
if (GetBuffer().GetDirty())
{
GetBuffer().Layout(dc, availableSpace, wxRICHTEXT_FIXED_WIDTH|wxRICHTEXT_VARIABLE_HEIGHT);