Ignore:
Timestamp:
05/06/03 14:17:36 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MLog.cc

    r2058 r2079  
    215215        }
    216216
    217     // Check for EOL
    218     const Bool_t endline = fBase[len-1]=='\n';
    219     // output text to screen (without trailing '\0' or '\n')
    220     out << TString(fBase, len-1);
    221     // reset colors if working with colors
    222     if (!TestBit(eNoColors))
    223         out << kReset;
    224     // output EOL of check found EOL
    225     if (endline)
    226         out << '\n';
     217    if (len>0)
     218    {
     219        // Check for EOL
     220        const Bool_t endline = fBase[len-1]=='\n';
     221        // output text to screen (without trailing '\0' or '\n')
     222        out << TString(fBase, len-1);
     223        // reset colors if working with colors
     224        if (!TestBit(eNoColors))
     225            out << kReset;
     226        // output EOL of check found EOL
     227        if (endline)
     228            out << '\n';
     229    }
    227230    out.flush();
    228231}
Note: See TracChangeset for help on using the changeset viewer.