#if wxUSE_HTML && wxUSE_STREAMS
-#ifndef WXPRECOMP
+#ifndef WX_PRECOMP
#include "wx/image.h"
#endif
// vertical position. Otherwise we'd be setting a pagebreak above
// the current cell, which is incorrect, or duplicating a
// pagebreak that has already been set.
- if( known_pagebreaks.Count() == 0 || *pagebreak <= m_PosY)
+ if( known_pagebreaks.GetCount() == 0 || *pagebreak <= m_PosY)
{
return false;
}
wxHtmlWindowInterface *winIface = m_WParser->GetWindowInterface();
if (winIface)
{
- wxString title = m_WParser->GetSource()->Mid(
- tag.GetBeginPos(),
- tag.GetEndPos1()-tag.GetBeginPos());
+ wxString title(tag.GetBeginIter(), tag.GetEndIter1());
#if !wxUSE_UNICODE && wxUSE_WCHAR_T
const wxFontEncoding enc = m_WParser->GetInputEncoding();
if ( enc != wxFONTENCODING_DEFAULT )
wxInputStream *is = fileBgImage->GetStream();
if ( is )
{
-#if !defined(__WXMSW__) || wxUSE_WXDIB
wxImage image(*is);
if ( image.Ok() )
winIface->SetHTMLBackgroundImage(image);
-#endif
}
+
+ delete fileBgImage;
}
}