git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26194
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString curLine;
for ( const wxChar *pc = m_label; ; pc++ )
{
- if ( *pc == wxT('\n') || *pc == wxT('\0') )
+ if ( *pc == wxT('\n') || *pc == wxT('\r') || *pc == wxT('\0') )
{
if ( !curLine )
{
heightTextTotal++; // FIXME: why is this necessary?
}
- if ( *pc == wxT('\n') ) {
+ if ( *pc == wxT('\n') || *pc == wxT('\r')) {
curLine.Empty();
}
else {
wxString curLine;
for ( const wxChar *pc = m_label; ; pc++ )
{
- if ( *pc == wxT('\n') || *pc == wxT('\0') )
+ if ( *pc == wxT('\n') || *pc == wxT('\r') || *pc == wxT('\0') )
{
if ( !curLine )
{
heightTextTotal++; // FIXME: why is this necessary?
}
- if ( *pc == wxT('\n') ) {
+ if ( *pc == wxT('\n') || *pc == wxT('\r')) {
curLine.Empty();
}
else {