Annotate Global Data filter incorrect for integers
In the Annotate Global Data filter, the default Format string is "%7.5g". If a field data has the value 1, then in Paraview 5.8.1, the annotation would show 1. In Paraview 5.9.0, the annotation now shows 0. In python, the output of "%7.5g" % 1
is 1, so this looks like a bug.
Here is a test dataset: wavelet.vti
To reproduce:
- Open the file in Paraview 5.9.0, and create an Annotate Global Data Filter
- Hit Apply, and the annotation will show 0, but the actual value of the field data is 1
Edit: I just tried this on the latest master, and with master the annotation says 6.9531e-310.
Edited by Boonthanome Nouanesengsy