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:
parent
2671975d2c
commit
d387f99f67
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue