Bugfixes for IMT
Posted by mholmes on 16 Jun 2008 in Activity log
Had a couple of bug reports from a user, some of which are due to Wine, and some of which are probably my fault:
- The XSLT Web View transformation fails to calculate zone offsets for this user; they all come out as NaN. I think I may have pinned this down to a problem based on locale; when the $ImageScaleFactor is calculated, his log shows that it has a comma for the decimal separator, and when the number is later used in a calculation, the calculation fails. On my computers (Win and Linux) it succeeds, but presumably my locale ensures a period separator. I'm trying a solution which uses an explicit cast (number()) when the value is used; we'll see if that helps on his system.
- The Annotation window disappears when you move to another desktop and back again, on Wine. This is definitely a Wine bug, but it's presumably related to the fact that the window is set to always-on-top; that's why the bug doesn't affect regular windows. I determined that it was getting a negative Left setting during the desktop cycle, so I've added code which checks for negative values and sets them to 0 when the window is activated. It still disappears, but now you can get it back by clicking the show button off and on again.
- When FormState saved the application's state to the Application Data folder, it was being saved to a folder named only "v.1" instead of "Image Markup Tool v.1". This turns out to be caused by the fact that Wine doesn't correctly read the product name field in the version info record, so I've rewritten that code so that if no product name is found, the filename of the executable is used instead.
I'll do a new release tomorrow, if the XSLT bug is solved.