Skip to content

Commit

Permalink
Prepared fix for issue #93.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsschmidt1337 committed Dec 2, 2015
1 parent 2e1fc51 commit e7d9a4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/nschmidt/ldparteditor/text/DatParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ private static ArrayList<ParsingResult> parse_Comment(String line, int lineNumbe
if (line.startsWith("0 !HISTORY ")) { //$NON-NLS-1$
try {
if (h.hasHISTORY()) {
if (line.substring(0, "0 !HISTORY YYYY-MM-DD".length()).compareTo(h.getLastHistoryEntry()) == -1) { //$NON-NLS-1$
final String lh = h.getLastHistoryEntry();
if (lh != null && line.substring(0, "0 !HISTORY YYYY-MM-DD".length()).compareTo(lh) == -1) { //$NON-NLS-1$
result.add(new ParsingResult(I18n.DATPARSER_HistoryWrongOrder, "[HA3] " + I18n.DATPARSER_HeaderHint, ResultType.HINT)); //$NON-NLS-1$
}
} else {
Expand Down

0 comments on commit e7d9a4e

Please sign in to comment.