Corrected layout when scaling the control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3890,6 +3890,7 @@ bool wxRichTextCtrl::LayoutContent(bool onlyVisibleRect)
|
||||
|
||||
PrepareDC(dc);
|
||||
dc.SetFont(GetFont());
|
||||
dc.SetUserScale(GetScale(), GetScale());
|
||||
|
||||
wxRichTextDrawingContext context(& GetBuffer());
|
||||
GetBuffer().Defragment(context);
|
||||
@@ -3897,6 +3898,8 @@ bool wxRichTextCtrl::LayoutContent(bool onlyVisibleRect)
|
||||
GetBuffer().Layout(dc, context, availableSpace, availableSpace, flags);
|
||||
GetBuffer().Invalidate(wxRICHTEXT_NONE);
|
||||
|
||||
dc.SetUserScale(1.0, 1.0);
|
||||
|
||||
if (!IsFrozen() && !onlyVisibleRect)
|
||||
SetupScrollbars();
|
||||
}
|
||||
|
Reference in New Issue
Block a user