[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 6b469bd66328f6bd031886307c6b8a6d8a3e134f..24d133b3800995d4eca7d944f580606f353256a1 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>