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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.14/00
    • Fix Version/s: 6.16/00
    • Component/s: Graphics
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: