X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88a8b04e9c387b5e5295d42f2ed23afcf37e3c2e..3931863650d4f4d126cac1992323df5fc39833dd:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 829cb32e61..c6438a351e 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -2117,9 +2117,9 @@ bool wxStyledTextCtrl::SaveFile(const wxString& filename) bool success = file.Write(GetText(), *wxConvCurrent); - if (success) { + if (success) SetSavePoint(); - } + return success; } @@ -2136,7 +2136,6 @@ bool wxStyledTextCtrl::LoadFile(const wxString& filename) #else wxString buffer; #endif - off_t len = file.Length(); if (len > 0) { @@ -2164,6 +2163,18 @@ bool wxStyledTextCtrl::LoadFile(const wxString& filename) } +#if wxUSE_DRAG_AND_DROP +wxDragResult wxStyledTextCtrl::DoDragOver(wxCoord x, wxCoord y, wxDragResult def) { + return m_swx->DoDragOver(x, y, def); +} + + +bool wxStyledTextCtrl::DoDropText(long x, long y, const wxString& data) { + return m_swx->DoDropText(x, y, data); +} +#endif + + //---------------------------------------------------------------------- // Event handlers