From e6a0295cdda5045864b4bdccf29cf692cc9389cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 12 Feb 2004 20:13:28 +0000 Subject: [PATCH] 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 --- utils/tex2rtf/src/htmlutil.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/tex2rtf/src/htmlutil.cpp b/utils/tex2rtf/src/htmlutil.cpp index 3a7a4fb1e4..a04e88baa7 100644 --- a/utils/tex2rtf/src/htmlutil.cpp +++ b/utils/tex2rtf/src/htmlutil.cpp @@ -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)); -- 2.50.0