Ignore:
Timestamp:
01/30/04 14:55:59 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2899 r2984  
    532532    if (gROOT->IsBatch())
    533533        return;
     534
    534535    fStatusBar->SetText(txt, 1);
    535536
     
    816817        return;
    817818
    818     TCanvas *c = (TCanvas *)gTQSender;
     819    TCanvas *c = (TCanvas*)gTQSender;
    819820
    820821    TVirtualPad* save=gPad;
    821822
    822     gPad = c->GetSelectedPad();
    823 
    824     SetStatusLine2(selected->GetObjectInfo(px,py));
     823    gPad = c ? c->GetSelectedPad() : NULL;
     824
     825    if (gPad)
     826        SetStatusLine2(selected->GetObjectInfo(px,py));
    825827
    826828    gPad=save;
Note: See TracChangeset for help on using the changeset viewer.