[root] Repository:
ViewVC logotype

Revision 29285


Jump to revision: Previous Next
Author: couet
Date: Wed Jul 1 09:46:08 2009 UTC (3 years, 7 months ago)
Log Message:
- Fix the problem mentionned here: https://savannah.cern.ch/bugs/?51473

  In the following macro the #int and #sum symbols had wrong limits placement
  if the character just before started with "#".
  {
      TCanvas *c1 = new TCanvas("c1","c1",500,500);
      TLatex l;
      l.SetTextSize(0.1);

      l.DrawLatex(0.1,0.6,"#nu#int^{1-x}_{2#pi}");
      l.DrawLatex(0.1,0.2,"a#int^{1-x}_{2#pi}");

      l.DrawLatex(0.5,0.6,"#nu#sum^{1-x}_{2#pi}");
      l.DrawLatex(0.5,0.2,"a#sum^{1-x}_{2#pi}");
   }

   This problem is there since the 1st version of TLatex. It is fixed by:
   1. Giving "^" and "_" a lower precedence than special and greek characters.
   2. Making a special case for #int and #sum and giving them even
      lower precedence than "^" and "_". 
   
   Oleksandr Grebenyuk <ogrebenyuk@lbl.gov> helped a lot solving this issue.

Changed paths:

Path Details
Directorytrunk/graf2d/graf/src/TLatex.cxx modified , text changed

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9