small optimization for wxTextCtrl (forgot to commit with textctrl.cpp)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b9691677a0
commit
bcb251a0c1
@ -261,6 +261,12 @@ private:
|
||||
wxMenu* m_privateContextMenu;
|
||||
|
||||
bool m_isNativeCaretShown;
|
||||
|
||||
// this is an optimization: instead of checking all the time whether we
|
||||
// need to move the caret to the end of text (before appending to the
|
||||
// control), we remember whether it is already at the end of text in this
|
||||
// variable
|
||||
bool m_isCaretAtEnd;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user