From b51adc6f24ba3a38e5ddf90d6c09d93165e6a87d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 3 Feb 2009 11:07:13 +0000 Subject: [PATCH] Fixed warning --- src/osgWidget/Input.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/osgWidget/Input.cpp b/src/osgWidget/Input.cpp index bdda2f48c..d230ae5ad 100644 --- a/src/osgWidget/Input.cpp +++ b/src/osgWidget/Input.cpp @@ -165,8 +165,11 @@ bool Input::keyDown(int key, int mask, WindowManager*) { void Input::setCursor(Widget*) { } -unsigned int Input::calculateBestYOffset(const std::string& s) { - const osgText::FontResolution fr(_text->getCharacterHeight(), _text->getCharacterHeight()); +unsigned int Input::calculateBestYOffset(const std::string& s) +{ + + const osgText::FontResolution fr(static_cast(_text->getCharacterHeight()), + static_cast(_text->getCharacterHeight())); osgText::String utf(s);