WDX: Load from file und. cursor displays wrong num. value

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

WDX: Load from file und. cursor displays wrong num. value

Post by *tbeu »

If a content plugin exports in ContentGetValueW a value of type ft_numeric_floating together with the trailing wide string representation of the floating-point number then button Load from file under cursor of the change attributes dialog displays a wrong value. It looks like the trailing wide string is casted to (simple) string where it should be wide string instead.

This one might be related.

The field [jpg-comment.GPSLatitude] of ImageMetaData WDX with default jpg-comment.ini can be used to reproduce the bug. Also, the number should have more than one digit of course.

TC 8.51a on WINXPSP3.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

From a quick look at the source, TC should be using it as a wide string. Where are you using the field?
Author of Total Commander
https://www.ghisler.com
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Please see my screen shots. From Image: http://tbeu.de/forum/wdx_1.png you can see that wdx returns correct numeric value and correct trailing wide string representation. In Image: http://tbeu.de/forum/wdx_2.png you see that this trailing wide string representation correctly is displayed in custom column but not in value field of change attributes dialog after clicking button Load from file under cursor.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, thanks, that helps a lot!
Author of Total Commander
https://www.ghisler.com
Post Reply