fixed bug in .hhp's FILES section creation introduced in previous revision

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-02-12 20:13:28 +00:00
parent 439e20bb71
commit e6a0295cdd

View File

@@ -202,9 +202,10 @@ void ReopenFile(FILE **fd, wxChar **fileName, const wxChar *label)
}
else
{
if (fileId == 1)
gs_filenames.Add(wxEmptyString);
wxSprintf(buf, _T("%s_%s.html"), FileRoot, label);
gs_filenames.SetCount(fileId + 1);
gs_filenames[fileId] = buf;
gs_filenames.Add(buf);
}
if (*fileName) delete[] *fileName;
*fileName = copystring(wxFileNameFromPath(buf));