Browse Source

minor fix to make the jucer cope with empty .h template files.

tags/2021-05-28
jules 17 years ago
parent
commit
d387f99f67
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      extras/the jucer/src/model/jucer_JucerDocument.cpp

+ 1
- 1
extras/the jucer/src/model/jucer_JucerDocument.cpp View File

@@ -629,7 +629,7 @@ static const String fixNewLines (const String& s)
for (int i = 0; i < lines.size(); ++i) for (int i = 0; i < lines.size(); ++i)
lines.set (i, lines[i].trimEnd()); lines.set (i, lines[i].trimEnd());
while (lines [lines.size() - 1].trim().isEmpty())
while (lines.size() > 0 && lines [lines.size() - 1].trim().isEmpty())
lines.remove (lines.size() - 1); lines.remove (lines.size() - 1);
return lines.joinIntoString (T("\r\n")) + T("\r\n"); return lines.joinIntoString (T("\r\n")) + T("\r\n");


Loading…
Cancel
Save