Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.0
-
None
-
Ubuntu 10.10
-
4cd4160d85dc1e158a545422cac895792b14eda6
Description
On Ubuntu 10.10, Qt Creator spits out the following warnings:
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0 QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0 QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0 ...
I tracked this down to QtSvg, in particular Qt Creator is trying to load one of the Humanity icons (example icon attached), which specifies font-size:medium. This resolves to 0 in parseLength(), used on line 1286 of qsvghandler.cpp. This is then passed to QFont::setPointSizeF in qsvgstyle_p.h.
I suggest at least a priority fix is made to get rid of the warning. Proper support for handling these named font sizes would be nice (and they do seem part of the TinySVG 1.2 spec), but is not necessary for fixing the warning.