]> git.saurik.com Git - wxWidgets.git/commit
Fix off by 1 error in wxHTML font size from points calculation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Jun 2012 11:58:55 +0000 (11:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Jun 2012 11:58:55 +0000 (11:58 +0000)
commit0199dae316e9efba01fa27d3a9e6e756954a7328
tree0a145e1e5905e79ef6b933f1b91b0726f0f55ac4
parent5812de8ade07b573bbd6a5f74ffe3c7af753b8e7
Fix off by 1 error in wxHTML font size from points calculation.

m_FontSize is in 1..7 range, not 0..6, so add 1 to it when setting it from the
index into m_FontsSizes array.

Also update the comment explaining the valid range of m_FontsSize.

Closes #14442.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/html/winpars.h
src/html/winpars.cpp