Ignore:
Timestamp:
07/14/08 20:59:13 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mastro
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mastro/MAstro.cc

    r8954 r8999  
    213213    Deg2Dms(deg, sgn, d, m, s);
    214214
    215     MString str;
    216     str.Print(fmt, sgn, d, m ,s);
    217     return str;
     215    return MString::Format(fmt, sgn, d, m ,s);
    218216}
    219217
     
    224222    Hor2Hms(deg, sgn, h, m, s);
    225223
    226     MString str;
    227     str.Print(fmt, sgn, h, m ,s);
    228     return str;
     224    return MString::Format(fmt, sgn, h, m ,s);
    229225}
    230226
  • trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc

    r8907 r8999  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.30 2008-06-02 08:46:39 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.31 2008-07-14 19:59:08 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    959959    const TVector2 deg = va*TMath::RadToDeg();
    960960
    961     MString txt;
    962     if (type==1)
    963         txt.Print("Ra=%.2fh  Dec=%.1fd", fmod(deg.X()/15+48, 24),  fmod(90-deg.Y()+270,180)-90);
    964     else
    965         txt.Print("Zd=%.1fd  Az=%.1fd",  fmod(deg.Y()+270,180)-90, fmod(deg.X()+720, 360));
     961    const TString txt = type==1 ?
     962        MString::Format("Ra=%.2fh  Dec=%.1fd", fmod(deg.X()/15+48, 24),  fmod(90-deg.Y()+270,180)-90) :
     963        MString::Format("Zd=%.1fd  Az=%.1fd",  fmod(deg.Y()+270,180)-90, fmod(deg.X()+720, 360));
    966964
    967965    TMarker *tip=new TMarker(v0.X(), v0.Y(), kDot);
Note: See TracChangeset for help on using the changeset viewer.