[vtk-developers] [VTK 0012644]: Unable to display "%" as the last	character in tooltip using "SetTooltipLabelFormat"
    Mantis Bug Tracker 
    mantis at public.kitware.com
       
    Tue Oct 11 18:21:43 EDT 2011
    
    
  
The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=12644 
====================================================================== 
Reported By:                Xiaofeng Z
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12644
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-10-11 18:21 EDT
Last Modified:              2011-10-11 18:21 EDT
====================================================================== 
Summary:                    Unable to display "%" as the last character in
tooltip using "SetTooltipLabelFormat"
Description: 
e.g.:
plot->SetTooltipLabelFormat("%l: %x, %y%")
In the above case, the % character at the end of the format string is not
displayed as when it is readed, it is considered escape char.  On the other
hand, since this is the last char, it didn't get a chance to be added back to
the output string.
Proposed fix:
Add
  if (escapeNext)
    tooltipLabel += "%"
before
  return tooltipLabel;
inside vtkPlot::GetTooltipLabel(...)
====================================================================== 
Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-10-11 18:21 Xiaofeng Z     New Issue                                    
======================================================================
    
    
More information about the vtk-developers
mailing list