Fix <big> and <small> behaviour in wxHTML
Correctly set the font size to the size one bigger or smaller than the
current one instead of just setting it to size 1 in both cases.
Apparently this was broken ever since this code was added back in
4f9297b0ee
(wxHTML src code indentation now conforms (more) to wxWin
coding style, 2000-11-05) without anybody noticing.
Closes #22012.
This commit is contained in:
parent
1f401475f3
commit
882a6caadb
@ -330,7 +330,7 @@ TAG_HANDLER_BEGIN(BIGSMALL, "BIG,SMALL")
|
||||
int oldsize = m_WParser->GetFontSize();
|
||||
int sz = (tag.GetName() == wxT("BIG")) ? +1 : -1;
|
||||
|
||||
m_WParser->SetFontSize(sz);
|
||||
m_WParser->SetFontSize(oldsize + sz);
|
||||
m_WParser->GetContainer()->InsertCell(
|
||||
new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user