Skip to content

Commit

Permalink
Fix #553, loading rviz as an rqt_gui plugin crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hershwg committed Jan 10, 2013
1 parent ee575a9 commit c226908
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rviz/ogre_helpers/ogre_logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ void OgreLogging::noLog()
void OgreLogging::configureLogging()
{
static RosLogListener ll;
Ogre::LogManager* log_manager = new Ogre::LogManager::getSingletonPtr();
Ogre::LogManager* log_manager = Ogre::LogManager::getSingletonPtr();
if( log_manager == NULL )
{
log_manager = new Ogre::LogManager();
}
Ogre::Log* l = log_manager->createLog( filename_.toStdString(), false, false, preference_==NoLogging );
l->addListener( &ll );

Expand Down

0 comments on commit c226908

Please sign in to comment.