From 40d5d1712d8ac7d1d58a2d0a4856766d53f56c43 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 2 Jul 2016 11:09:12 +0100 Subject: [PATCH] Changed to an int comparison --- src/osgPlugins/txf/TXFFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/txf/TXFFont.cpp b/src/osgPlugins/txf/TXFFont.cpp index 6cd951d02..412a5a5a7 100644 --- a/src/osgPlugins/txf/TXFFont.cpp +++ b/src/osgPlugins/txf/TXFFont.cpp @@ -221,7 +221,7 @@ TXFFont::loadFont(std::istream& stream) return false; } - float coord_scale = (computedmaxheight>0.0f) ? (1.0f/float(computedmaxheight)) : 1.0f; + float coord_scale = (computedmaxheight>0) ? (1.0f/float(computedmaxheight)) : 1.0f; { // insert a trivial blank character