#include "wx/wxprec.h"
#include "wx/defs.h"
-#if wxUSE_HTML
+
+#if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__
#pragma hdrstop
if (m_Word.Find(wxT('&')) != -1)
{
#define ESCSEQ(escape, subst) \
- { wxT("&"escape";"), wxT("&"escape" "), wxT(subst) }
+ { _T("&") _T(escape) _T(";"), _T("&") _T(escape) _T(" "), _T(subst) }
static wxChar* substitutions[][3] =
{
ESCSEQ("quot", "\""),
int step = (s_width - xpos);
if (step < 0) step = 0;
xcnt--;
- while (line != cell) {
+ if (xcnt > 0) while (line != cell) {
line -> SetPos(line -> GetPosX() + s_indent +
(counter++ * step / xcnt),
ypos + line -> GetPosY());