Fix build with wxUSE_OLE==0
This commit is contained in:
parent
faff721ef0
commit
31ae1f8094
1 changed files with 1 additions and 1 deletions
|
|
@ -690,7 +690,7 @@ bool wxTextCtrl::MSWCreateText(const wxString& value,
|
|||
::SendMessage(GetHwnd(), EM_SETMARGINS, wParam, lParam);
|
||||
}
|
||||
|
||||
#if wxUSE_RICHEDIT && defined(wxHAS_TOM_H)
|
||||
#if wxUSE_RICHEDIT && wxUSE_OLE && defined(wxHAS_TOM_H)
|
||||
// For RichEdit >= 4, SetFont(), called above from MSWCreateControl(), uses
|
||||
// EM_SETCHARFORMAT which affects the undo buffer, meaning that CanUndo()
|
||||
// for a newly created control returns true, which is unexpected. To avoid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue