X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7489b367d3dcf925dcd93d1b57370998d15d653..c6cdf16c933251be1670f611ba28e48885610b23:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 525f8cfd19..66b2caa787 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -362,17 +362,13 @@ void wxLogStream::DoLogString(const char *szString) // ---------------------------------------------------------------------------- wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl) // @@@ TODO: in wxGTK wxTextCtrl doesn't derive from streambuf -#ifndef __WXGTK__ : wxLogStream(new ostream(pTextCtrl)) -#endif //GTK { } wxLogTextCtrl::~wxLogTextCtrl() { - #ifndef __WXGTK__ - delete m_ostr; - #endif //GTK + delete m_ostr; } // ---------------------------------------------------------------------------- @@ -659,6 +655,11 @@ void wxLogWindow::Show(bool bShow) m_pLogFrame->Show(bShow); } +wxFrame *wxLogWindow::GetFrame() const +{ + return m_pLogFrame; +} + void wxLogWindow::DoLog(wxLogLevel level, const char *szString) { // first let the previous logger show it