OSDN Git Service

Don't cut off zoomed font sizes to the nearest integer point size
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Fri, 15 Oct 2010 15:19:36 +0000 (17:19 +0200)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Fri, 15 Oct 2010 15:44:15 +0000 (17:44 +0200)
commitc5d5657c13f70ce2e6b893767fcaa819cc5af0b5
tree29995da884c182f4daee3119daa81785a0c57b03
parent4af1d09535c12bc33a3aef6ec346567f8c82e197
Don't cut off zoomed font sizes to the nearest integer point size

This caused it to go to 0 when for example displaying size 9 at 10%,
which is an invalid value so it caused the text to revert back to the
default size.

It also caused zooming to sometimes appearing to have no effect. For
example zooming size 9 to 110% would still yield size 9 rather than 9.9.

Task-number: QTCREATORBUG-2744
Task-number: QTCREATORBUG-2745
Reviewed-by: Robert Loehning
Reviewed-by: hjk
src/plugins/debugger/debuggerplugin.cpp
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/fontsettings.cpp