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

"pmarker->Draw("nodraw #1" with SaveAs method

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.14/00
    • 6.16/00
    • Graphics
    • None
    • Linux Mageia 6 64-bits

    Description

      Hello, if I type the following line, I get an error

      root -l test.root 
       ------------------------------------------------------------
      |Welcome to ROOT 6.14/00 [http://root.cern.ch|http://root.cern.ch/]|
      |(c) 1995-2018, The ROOT Team|
      |Built for linuxx8664gcc|
      |From tag v6-14-00, 13 June 2018|
      |Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'|
       
      ------------------------------------------------------------
       
      root [0] 
       Attaching file test.root as _file0...
       (TFile *) 0x1368150
       root [1] h2X->SaveAs("test.C")
       Info in <TH1D::SaveAs>: C++ Macro file: test.C has been generated
       root [2] .x test.C 
       /home/delaune/dev/build/./test.C:4044:18: warning: missing terminating '"' character [-Winvalid-pp-token]
       pmarker->Draw("nodraw #1
       ^
       /home/delaune/dev/build/./test.C:4044:18: error: expected expression
       /home/delaune/dev/build/./test.C:4045:1: warning: missing terminating '"' character [-Winvalid-pp-token]
       ");
       ^
       <<< cling interactive line includer >>>:1:1: error: expected '}'
       input_line_46:1:43: note: to match this '{'
       void __cling_Un1Qu318(void* vpClingValue) {
      

      The problem is well identified and it looks like the SaveAs method does not manage correctly the TPolyMarker draw options. The consequance is the .C macro cannot be run without editing it.

      Attachments

        Activity

          People

            couet Olivier Couet
            4aa1957e0394b6104dd6 Olivier Delaune
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: