Don't query metrics that won't be used.
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Jan 2010 16:32:31 +0000 (16:32 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Jan 2010 16:32:31 +0000 (16:32 +0000)
commite27619029d56533297ca5d79f614646d8c8354a2
tree0b2a8ffa72cdb596cbf806f48b97d17bda6b6d88
parent319106d6e2c158d1ff322ee14a4b5c8e7154900c
Don't query metrics that won't be used.

If ConvertPixelsToDialog() or ConvertDialogToPixels() was called with
one of the two input values set to -1, the respective font metric was
queried needlessly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/wincmn.cpp