1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

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

This commit is contained in:
jules 2008-12-30 13:32:15 +00:00
parent 2671975d2c
commit d387f99f67

View file

@ -629,7 +629,7 @@ static const String fixNewLines (const String& s)
for (int i = 0; i < lines.size(); ++i)
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);
return lines.joinIntoString (T("\r\n")) + T("\r\n");