mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Projucer: Fixed a potential crash when reloading a GUI builder document
This commit is contained in:
parent
4a294eaa39
commit
526272c4f5
1 changed files with 6 additions and 1 deletions
|
|
@ -69,7 +69,12 @@ void SourceCodeDocument::reloadInternal()
|
|||
auto lineFeed = getLineFeedForFile (fileContent);
|
||||
|
||||
if (lineFeed.isEmpty())
|
||||
lineFeed = project->getProjectLineFeed();
|
||||
{
|
||||
if (project != nullptr)
|
||||
lineFeed = project->getProjectLineFeed();
|
||||
else
|
||||
lineFeed = "\r\n";
|
||||
}
|
||||
|
||||
codeDoc->setNewLineCharacters (lineFeed);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue