mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Fix for Time::formatted with empty strings.
This commit is contained in:
parent
98bd1c55d3
commit
5765dbe670
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ namespace TimeHelpers
|
|||
const size_t numChars = wcsftime (buffer, bufferSize - 1, format.toUTF32(), tm);
|
||||
#endif
|
||||
|
||||
if (numChars > 0)
|
||||
if (numChars > 0 || format.isEmpty())
|
||||
return String (StringType (buffer),
|
||||
StringType (buffer) + (int) numChars);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue