From 34fc7dd2897a25ecfc9737cf3700b5363d748f58 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 14 Mar 2003 09:28:34 +0000 Subject: [PATCH] The wrong file name was being used readFontFile. --- src/osgText/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index 247668b3d..6a07c2a52 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -63,7 +63,7 @@ osgText::Font* osgText::readFontFile(const std::string& filename) std::string foundFile = findFontFile(filename); if (foundFile.empty()) return 0; - osg::Object* object = osgDB::readObjectFile(filename); + osg::Object* object = osgDB::readObjectFile(foundFile); // if the object is a font then return it. osgText::Font* font = dynamic_cast(object);