]> git.saurik.com Git - wxWidgets.git/commit - include/wx/stc/stc.h
Fix wxStyledTextCtrl::WriteText() to replace the selection.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:27:21 +0000 (22:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:27:21 +0000 (22:27 +0000)
commit933be2dc3947b4a89d3951e8b34379ecf0467220
tree4714a6a0f71783d5f3124278348aa7522eec3bc6
parent0015757fecd9eca06336af8c10e900589c34cbea
Fix wxStyledTextCtrl::WriteText() to replace the selection.

WriteText() must replace the selection, not just insert the new text,
otherwise SetValue() implementation inherited from the base class doesn't work
as it doesn't clear the old contents of the control before adding new text to
it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/stc/stc.h
src/stc/stc.h.in