like <FONT SIZE=gaga>, i.e. without an proper integer argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3533
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !strDesc.IsEmpty() ) {
m_aDescriptions[index] = strDesc; // replace old value
}
if ( !strDesc.IsEmpty() ) {
m_aDescriptions[index] = strDesc; // replace old value
}
- m_aExtensions[index] += strExtensions;
+ m_aExtensions[index] += ' ' + strExtensions;
wxColour oldclr = m_WParser -> GetActualColor();
int oldsize = m_WParser -> GetFontSize();
if (tag.HasParam("COLOR")) {
wxColour oldclr = m_WParser -> GetActualColor();
int oldsize = m_WParser -> GetFontSize();
if (tag.HasParam("COLOR")) {
wxColour clr;
tag.ScanParam("COLOR", "#%lX", &tmp);
clr = wxColour((tmp & 0xFF0000) >> 16 , (tmp & 0x00FF00) >> 8, (tmp & 0x0000FF));
wxColour clr;
tag.ScanParam("COLOR", "#%lX", &tmp);
clr = wxColour((tmp & 0xFF0000) >> 16 , (tmp & 0x00FF00) >> 8, (tmp & 0x0000FF));
}
if (tag.HasParam("SIZE")) {
}
if (tag.HasParam("SIZE")) {
+ // give 'tmp' an initial value. If conversion fails, it will keep this value.
+ long tmp = 0;
tag.ScanParam("SIZE", "%li", &tmp);
tag.ScanParam("SIZE", "%li", &tmp);
- m_WParser -> SetFontSize(tmp);
+ // We *really* should check the result of (v)sscanf, but ScanParam returns void...
+ m_WParser -> SetFontSize(oldsize+tmp);
m_WParser -> GetContainer() -> InsertCell(new wxHtmlFontCell(m_WParser -> CreateCurrentFont()));
}
m_WParser -> GetContainer() -> InsertCell(new wxHtmlFontCell(m_WParser -> CreateCurrentFont()));
}