Skip to content

x position bug in decimal format #2

Description

@DaniBodor

Not sure if this repo is maintained at all, but I found a bug in the time stamper tool which would be fairly easy to fix (i think).

the x position of the time stamp is always based on the format with a suffix, even when the '00:00' position is chosen.
this is because getString in line 154, whereas for the decimal format is should use getString2 instead.
maxWidth = ip.getStringWidth(getString(start+interval*imp.getStackSize()));

tbf, I'm not fluent enough in java to even figure out why the maxWidth parameter is needed at all, as opposed to just placing text at a given (x,y)-position with left-justification (which would be the macro language way to do it). This probably requires leading spaces or 0s for small numbers, but I believe the text is monospace so that should be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions