Merge "Add null check for mTextureSet. For empty text, text-visual doesn't create...
authorjoogab yun <joogab.yun@samsung.com>
Fri, 18 Sep 2020 04:48:30 +0000 (04:48 +0000)
committerGerrit Code Review <gerrit@review>
Fri, 18 Sep 2020 04:48:30 +0000 (04:48 +0000)
dali-toolkit/internal/text/text-scroller.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 22f1156..6d0930b
@@ -271,7 +271,10 @@ void TextScroller::SetParameters( Actor scrollingTextActor, Renderer renderer, T
 
     // Reset to the original shader and texture before scrolling
     mRenderer.SetShader(mShader);
-    mRenderer.SetTextures( mTextureSet );
+    if( mTextureSet )
+    {
+      mRenderer.SetTextures( mTextureSet );
+    }
   }
 
   mShader = mRenderer.GetShader();