Removed the extra space in default document name at startup (closes #254, fixes #97)

Fixed extra space between UNTITLED_STR and document number "0" when creating a
new buffer on start up through the function FileManager::bufferFromDocument().
pull/254/merge
Joshua Noel 10 years ago committed by Damien GERARD
parent 8c18baf06b
commit 11a51aa05e

@ -1106,7 +1106,7 @@ BufferID FileManager::bufferFromDocument(Document doc, bool dontIncrease, bool d
{
generic_string newTitle = UNTITLED_STR;
TCHAR nb[10];
wsprintf(nb, TEXT(" %d"), 0);
wsprintf(nb, TEXT("%d"), 0);
newTitle += nb;
if (!dontRef)

Loading…
Cancel
Save