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

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

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

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

Post by *tbeu » 2014-09-04, 22:02 UTC

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 Preview, Autodesk Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37013
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-09-07, 09:18 UTC

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
http://www.ghisler.com

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

Post by *tbeu » 2014-09-07, 19:03 UTC

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 Preview, Autodesk Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37013
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-09-08, 10:14 UTC

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

Post Reply