[Orxonox-commit 2023] r6740 - code/branches/gamestates2/src/libraries/core

rgrieder at orxonox.net rgrieder at orxonox.net
Fri Apr 16 12:48:24 CEST 2010


Author: rgrieder
Date: 2010-04-16 12:48:24 +0200 (Fri, 16 Apr 2010)
New Revision: 6740

Modified:
   code/branches/gamestates2/src/libraries/core/GUIManager.cc
Log:
Trivial bug fix.

Modified: code/branches/gamestates2/src/libraries/core/GUIManager.cc
===================================================================
--- code/branches/gamestates2/src/libraries/core/GUIManager.cc	2010-04-16 10:24:56 UTC (rev 6739)
+++ code/branches/gamestates2/src/libraries/core/GUIManager.cc	2010-04-16 10:48:24 UTC (rev 6740)
@@ -302,9 +302,9 @@
     void GUIManager::setBackgroundImage(const std::string& imageSet, const std::string imageName)
     {
         if (imageSet.empty() || imageName.empty())
+            this->setBackgroundImage("");
+        else
             this->setBackgroundImage("set: " + imageSet + " image: " + imageName);
-        else
-            this->setBackgroundImage("");
     }
 
     void GUIManager::setBackgroundImage(const std::string& image)




More information about the Orxonox-commit mailing list