Skip to content

Commit

Permalink
Fixed SWT (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
priytosh-tripathi committed Feb 6, 2023
1 parent 24af10e commit 1263d9e
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -51,8 +51,9 @@ public static Image createRotatedTextImage(String text, int angle, Font ft) {
tl.setFont(ft);
}
tl.setText(text);

return createRotatedImage(tl, pt.x, pt.y, angle);
Image im = createRotatedImage(tl, pt.x, pt.y, angle);
tl.dispose();
return im;
} catch (Exception e) {
e.printStackTrace();

Expand Down

0 comments on commit 1263d9e

Please sign in to comment.