MantisBT - VTK
View Issue Details
0013710VTK(No Category)public2012-12-07 05:312013-06-25 14:09
Joó Péter 
Dave DeMarle 
normalminorhave not tried
closedfixed 
5.8.0 
6.0.0 
TBD
incorrect functionality
0013710: vtkCaptionActor2D: texts are cropped
Starting from VTK 5.8 version there is a regression in vtkCaptionActor2D class.
This bug exists in VTK 5.10.1 too.

The regression is that the last character's half portion (approximation) gets cropped.

Even in the official examples the error is present!
Run the TestCaptionActor.tcl example or check my attached screenshot.

Please note that in each class which uses vtkCaptionActor2D the problem is present, such as:

vtkAxesActor
vtkCaptionRepresentation
vtkCaptionWidget

That problem can be easily reproducated by the attached C++ program too.
No tags attached.
zip cropping.zip (18,666) 2012-12-07 05:31
https://www.vtk.org/Bug/file/9361/cropping.zip
Issue History
2012-12-07 05:31Joó PéterNew Issue
2012-12-07 05:31Joó PéterFile Added: cropping.zip
2012-12-07 05:42Matthias BinningerNote Added: 0029843
2012-12-07 07:00Joó PéterNote Added: 0029844
2012-12-07 07:02Joó PéterNote Edited: 0029844bug_revision_view_page.php?bugnote_id=29844#r533
2012-12-07 09:37Matthias BinningerNote Added: 0029853
2013-06-25 13:41Dave DeMarleNote Added: 0031057
2013-06-25 13:41Dave DeMarleStatusbacklog => todo
2013-06-25 13:41Dave DeMarleResolutionopen => fixed
2013-06-25 13:41Dave DeMarleAssigned To => Dave DeMarle
2013-06-25 13:41Dave DeMarleStatustodo => active development
2013-06-25 13:41Dave DeMarleStatusactive development => gatekeeper review
2013-06-25 13:41Dave DeMarleStatusgatekeeper review => customer review
2013-06-25 13:41Dave DeMarleFixed in Version => 6.0.0
2013-06-25 14:09Dave DeMarleStatuscustomer review => closed

Notes
(0029843)
Matthias Binninger   
2012-12-07 05:42   
For me, applying the following patch to 5.10.1 solved the issue:
https://github.com/Kitware/VTK/commit/5fff9333cb8434b22e867e6707bac6d77855bdec [^]
(0029844)
Joó Péter   
2012-12-07 07:00   
(edited on: 2012-12-07 07:02)
Thank you Matthias, I am very happy with your incredibly rapid response!

Do you think that the upcoming VTK release can include your patch?

(0029853)
Matthias Binninger   
2012-12-07 09:37   
The patch is not from me, I just found it when the same problem came up here last week.
The patch is already in VTKs source repository, so my guess is, that it will be included in the next release. But I'm in no way involved in the VTK development, so I don't know when that will be or on which basis patches are chosen for bugfix/main releases.
(0031057)
Dave DeMarle   
2013-06-25 13:41   
Fixed in via:
commit 5fff9333cb8434b22e867e6707bac6d77855bdec
Date: Sat Jun 2 09:49:52 2012 -0400