Use wxRound() instead of implicit casts to convert double to int. This not only avoids warnings (e.g. when using g++ with -Wconversion) but also should be (marginally) more precise. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775