From 9c34dd9deafaa428534b498b90799687a7dcddaa Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 10 Aug 2002 09:58:52 +0000 Subject: [PATCH] corrected ::Clear git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/textctrl.cpp | 4 ++-- src/mac/textctrl.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 141042b1ae..196f5344da 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -1217,8 +1217,8 @@ void wxTextCtrl::Clear() } else { - ClearCurrentScrap(); - TXNClear((TXNObject)m_macTXN); + TXNSetSelection( (TXNObject)m_macTXN , kTXNStartOffset , kTXNEndOffset ) ; + TXNClear((TXNObject)m_macTXN); } Refresh() ; } diff --git a/src/mac/textctrl.cpp b/src/mac/textctrl.cpp index 141042b1ae..196f5344da 100644 --- a/src/mac/textctrl.cpp +++ b/src/mac/textctrl.cpp @@ -1217,8 +1217,8 @@ void wxTextCtrl::Clear() } else { - ClearCurrentScrap(); - TXNClear((TXNObject)m_macTXN); + TXNSetSelection( (TXNObject)m_macTXN , kTXNStartOffset , kTXNEndOffset ) ; + TXNClear((TXNObject)m_macTXN); } Refresh() ; } -- 2.45.2