uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp
branchRCL_3
changeset 12 f93c875b566e
parent 8 46927d61fef3
child 17 c9d868f1e20c
--- a/uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp	Tue May 11 17:03:00 2010 +0300
+++ b/uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp	Tue May 25 13:39:57 2010 +0300
@@ -1592,9 +1592,9 @@
 
         // If we are reusing deleted texture, remove it from "deleted" array
         TInt index = iTextures.Find(&texture);
-        if (index != KErrNotFound)
+        if (index == KErrNotFound)
            {
-           iTextures.Remove(index);                
+           iTextures.Append(env->TextureManager().Texture(id));                
            }                    
 
 
@@ -1727,9 +1727,9 @@
 
         // If we are reusing deleted texture, remove it from "deleted" array
         TInt index = iTextures.Find(&textureRef);
-        if (index != KErrNotFound)
+        if (index == KErrNotFound)
            {
-           iTextures.Remove(index);                
+           iTextures.Append(env->TextureManager().Texture(id));                
            }                    
         
         // Add texture to skin content