Scene: Bugfix in createSurfaceGroup() / createLayerGroup()
authorFrédéric Blain <frederic.blain@valeo.com>
Tue, 26 Jun 2012 15:04:43 +0000 (17:04 +0200)
committerMichael Schuldt <michael.schuldt@bmw.de>
Thu, 28 Jun 2012 10:12:35 +0000 (12:12 +0200)
LayerManagerService/src/Scene.cpp

index f2f5c94..159362e 100644 (file)
@@ -108,7 +108,7 @@ SurfaceGroup* Scene::createSurfaceGroup(const uint surfaceGroupId)
         }
         else
         {
-            LOG_DEBUG("Scene","SurfaceGroup with id [ " << surfaceGroupId << " ] " << " already exists ");
+            newSurfaceGroup =  m_surfaceGroupMap.at(surfaceGroupId);
         }
     }
     return newSurfaceGroup;
@@ -133,7 +133,7 @@ LayerGroup* Scene::createLayerGroup(const uint layerGroupId)
         }
         else
         {
-            LOG_DEBUG("Scene","LayerGroup with id [ " << layerGroupId << " ] " << " already exists " );
+            newLayerGroup = m_layerGroupMap.at(layerGroupId);
         }
     }
     return newLayerGroup;