diff options
author | Andy Shaw <qt-info@nokia.com> | 2010-07-21 11:44:25 (GMT) |
---|---|---|
committer | Andy Shaw <qt-info@nokia.com> | 2010-07-21 11:44:25 (GMT) |
commit | 8d15fffc4d57c55949f799e52f2f52d3b0b66321 (patch) | |
tree | 6834187be71d61b90b5bc569fb59ad2517e0da43 /src/svg/qsvgstyle_p.h | |
parent | 0c57f26a32382c7431f0d536508c8e979f7e0313 (diff) | |
download | Qt-8d15fffc4d57c55949f799e52f2f52d3b0b66321.zip Qt-8d15fffc4d57c55949f799e52f2f52d3b0b66321.tar.gz Qt-8d15fffc4d57c55949f799e52f2f52d3b0b66321.tar.bz2 |
Ensure that font sizes that are > 0 and < 1 are still respected
What was happening was that when a font size of 0.5 was used then it
would end up being set to be point size 0. This now respects the
setting used.
Autotest is included in this patch for this case.
Reviewed-by: Kim
Diffstat (limited to 'src/svg/qsvgstyle_p.h')
-rw-r--r-- | src/svg/qsvgstyle_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvgstyle_p.h b/src/svg/qsvgstyle_p.h index af3b4e5..dfea12c 100644 --- a/src/svg/qsvgstyle_p.h +++ b/src/svg/qsvgstyle_p.h @@ -338,7 +338,7 @@ public: { // Store the _pixel_ size in the font. Since QFont::setPixelSize() only takes an int, call // QFont::SetPointSize() instead. Set proper font size just before rendering. - m_qfont.setPointSize(size); + m_qfont.setPointSizeF(size); m_sizeSet = 1; } |