Bug with Tooltips?

Hello

A strange behaviour with a tooltip in a TreeView.
The TreeViewItem class override the getTooltip method.
It works well except when the juce::String contains a ‘\’ character.
For instance, the string C:\Data\188968\Results\CLCplus_RASTER_2021_010m_03035\CLCplus_RASTER_2021_010m_03035\CLCplus_RASTER_2021_010m_03035.tif will appear truncated :
C:\Data\188968\Results\CLCplus_RASTER_2021_010m_03035\CL

The problem is not the length of the string. Indeed, I have longer strings that appear perfectly, for instance :
Largeur:14715;Hauteur:13774;Nb Bits:8;Nb Sample:1;Xmin:3726730.00;Ymax:2866030.00;GSD:10.00;Nb Strip:192;RowsPerStrip:72;Compression:LZW;Predictor:1;PhotInt:Black is 0;PlanarConfiguration:2;SampleFormat:1;

My guess is that the ‘\’ character does something nasty …

If I do : text = text.replace(“\”, “\\”);
Now it works, but of course I have now two ‘\’ characters

There’s a fix for this in the pipeline :slight_smile:

1 Like

A fix is now out on develop

1 Like