From 1870b4b34586a052ee70b41a771d89c174558c31 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Mon, 27 Apr 2020 08:02:42 +0200 Subject: [PATCH] catch and set with no _found; leave empty as empty string --- components/resource/stats.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/resource/stats.cpp b/components/resource/stats.cpp index 1d78d7a4c..bc63ddf58 100644 --- a/components/resource/stats.cpp +++ b/components/resource/stats.cpp @@ -42,6 +42,8 @@ Profiler::Profiler() { if (osgDB::Registry::instance()->getReaderWriterForExtension("ttf")) _font = osgMyGUI::DataManager::getInstance().getDataPath("DejaVuLGCSansMono.ttf"); + else + _font = ""; setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F3); }