Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8474

Setting status bar of TRootBrowser to 1 column produces error message if a TCanvas is also open.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.34/34
    • Fix Version/s: 5.34/38, 6.10/00
    • Component/s: GUI
    • Labels:
      None
    • Environment:

      Scientific Linux release 6.8

      Description

      TRootBrowser R;
      TCanvas* C=new TCanvas("a","a")
      R.GetStatusBar()->SetParts(1)

      Now move cursor over the Canvas window, results in error messages of the form:

      Error in <TGStatusBar::SetText>: partidx 1 out of range (0,0)

      Normally,when the status bar has not been changed, this results in information being displayed in the status bar of the rootbrowser, but it doesn't notice that there is only 1 column and tries to write to the normal four columns hence generating the error message. The status bar of the TCanvas is normally hidden of course. This is annoying because several error messages can easily be generated on the screen resulting in useful information scrolling away.

      I found this while developing an Eve based program where I take control of the status bar in the eve browser, to put in my own information, but the problem comes from rootbrowser as shown here.

        Attachments

          Activity

            People

            Assignee:
            bellenot Bertrand Bellenot
            Reporter:
            afinch Alex Finch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: