[NUI] Workaround : Add Clear() when new PropertyMap() (#1894)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 5 Aug 2020 04:34:48 +0000 (13:34 +0900)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 04:34:48 +0000 (13:34 +0900)
src/Tizen.NUI/src/public/PropertyMap.cs

index 6b469bd..24d133b 100755 (executable)
@@ -32,6 +32,10 @@ namespace Tizen.NUI
         public PropertyMap() : this(Interop.PropertyMap.new_Property_Map__SWIG_0(), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            
+            // workaround : when do "new PropertyMap().Add(xxx, xxx).Add(xxx, xxx)", it has garbage values sometimes.
+            // this will be fixed later.
+            Clear();
         }
 
         /// <summary>