Skip to content

Commit

Permalink
Fixes to compile under Java 1.5 (on my Linux machine).
Browse files Browse the repository at this point in the history
  • Loading branch information
damellis committed Aug 26, 2011
1 parent b73cf39 commit 4553cee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/src/processing/app/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -2655,7 +2655,6 @@ class TextAreaPopup extends JPopupMenu {
public TextAreaPopup() {
openURLItem = new JMenuItem("Open URL");
openURLItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Base.openURL(clickedURL);
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/processing/app/syntax/SyntaxUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,15 @@ private static int drawTabbedCommentsText(Segment line, int x, int y,
Segment tag = stringToSegment(parse[1]);
Segment post = stringToSegment(parse[2]);

if (pre.length()>0)
if (pre.count>0)
x = Utilities.drawTabbedText(pre, x, y, gfx, expander, 0);

Font f = gfx.getFont();
styles[Token.URL].setGraphicsFlags(gfx, f);
x = Utilities.drawTabbedText(tag, x, y, gfx, expander, 0);

commentStyle.setGraphicsFlags(gfx, f);
if (post.length()>0)
if (post.count>0)
x = Utilities.drawTabbedText(post, x, y, gfx, expander, 0);
return x;
}
Expand Down

0 comments on commit 4553cee

Please sign in to comment.