Menu

#1142 org.jfree.text.TextUtilities#drawRotatedString(...) is not using argument textX

1.0.x
closed-fixed
None
5
2017-02-09
2015-02-10
No

Hello

I'm not sure if I'm correct here to report a bug for jCommon.

In org.jfree.text.TextUtilites I found in the method "public static void drawRotatedString(String text, Graphics2d g2, float textX, float textY, double angle, float rotateX, float rotateY)" a bug:

in the code fragment

    if (angle == 0.0) {
        drawAlignedString(text, g2, textY, textY, TextAnchor.BASELINE_LEFT);
        return;
    }

Should the method not called like this (textX was not used):
drawAlignedString(text, g2, textX, textY, TextAnchor.BASELINE_LEFT);

Thank you for your work and regards
Daniel

Discussion

  • David Gilbert

    David Gilbert - 2017-02-09

    Thanks for the report. This one got resolved here:

    https://github.com/jfree/jcommon/issues/3

    ...based on your feedback.

    Best regards,
    David

     
  • David Gilbert

    David Gilbert - 2017-02-09
    • status: open --> closed-fixed
    • assigned_to: David Gilbert
     

Log in to post a comment.

MongoDB Logo MongoDB