X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Fmodel%2FSGText.cxx;h=1da6c57cc2e8ac3aa1450fe5d8965511ce138d9d;hb=32a6bd78d8bf143f40922f1a0bc7a88ea7706a7d;hp=21638793f8d3c8a821654f1d294a859ac70fe616;hpb=02be490466ce6df38bb499253aefe3c425b5a7b5;p=simgear.git diff --git a/simgear/scene/model/SGText.cxx b/simgear/scene/model/SGText.cxx index 21638793..1da6c57c 100644 --- a/simgear/scene/model/SGText.cxx +++ b/simgear/scene/model/SGText.cxx @@ -26,6 +26,7 @@ #include #include +#include #include #include @@ -43,9 +44,9 @@ public: offset( aOffset ), truncate( aTruncate ), numeric( aNumeric ), - format( aFormat ) + format( simgear::strutils::sanitizePrintfFormat( aFormat ) ) { - if( format.size() == 0 ) { + if( format.empty() ) { if( numeric ) format = "%f"; else format = "%s"; } @@ -90,8 +91,6 @@ osg::Node * SGText::appendText(const SGPropertyNode* configNode, { SGConstPropertyNode_ptr p; - SG_LOG(SG_GENERAL, SG_DEBUG, "Creating a text object"); - osgText::Text * text = new osgText::Text(); osg::Geode * g = new osg::Geode; g->addDrawable( text );