This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 85b2a2bad1ec92b9ab7aa6a713b18912c3c841a9
Author: Yishay Weiss <[email protected]>
AuthorDate: Sun Aug 28 23:10:14 2022 -0700

    Emulation - make sure graphics object is fully initialized when retrieved
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index d2631e4d79..744d716bd9 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -1159,7 +1159,10 @@ public class UIComponent extends UIBase
                public function get graphics():Graphics
                {
             if (_graphics == null)
+            {
                 _graphics = new mx.display.Graphics(this);
+                _graphics.clear();
+            }
                        return _graphics;
                }
 
@@ -1167,7 +1170,10 @@ public class UIComponent extends UIBase
         public function get royalegraphics():mx.display.Graphics
         {
             if (_graphics == null)
+            {
                 _graphics = new mx.display.Graphics(this);
+                _graphics.clear();
+            }
             return _graphics;
         }            
             

Reply via email to