1. wxMotif fixes for compilation in "no compatible" mode
2. Common fixes to be able to link minimal sample without stream classes, tree ctrl, list ctrl &c git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -693,7 +693,14 @@ void wxLogFrame::OnSave(wxCommandEvent& WXUNUSED(event))
|
||||
// -------------------------
|
||||
int nLines = m_pTextCtrl->GetNumberOfLines();
|
||||
for ( int nLine = 0; bOk && nLine < nLines; nLine++ ) {
|
||||
bOk = file.Write(m_pTextCtrl->GetLineText(nLine) + wxTextFile::GetEOL());
|
||||
bOk = file.Write(m_pTextCtrl->GetLineText(nLine) +
|
||||
// we're not going to pull in the whole wxTextFile if all we need is this...
|
||||
#if wxUSE_TEXTFILE
|
||||
wxTextFile::GetEOL()
|
||||
#else // !wxUSE_TEXTFILE
|
||||
'\n'
|
||||
#endif // wxUSE_TEXTFILE
|
||||
);
|
||||
}
|
||||
|
||||
if ( bOk )
|
||||
|
Reference in New Issue
Block a user