Fixed SVACE error in TextVisual 74/237474/2
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 30 Jun 2020 15:48:44 +0000 (16:48 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 30 Jun 2020 15:51:55 +0000 (16:51 +0100)
Change-Id: Icf15764d48b0b879577451172bced309bfffada4

dali-toolkit/internal/visuals/text/text-visual.cpp [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index a3057c3..04f3618
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -820,8 +820,11 @@ void TextVisual::AddRenderer( Actor& actor, const Vector2& size, bool hasMultipl
     // Get the current offset for recalculate the offset when tiling.
     Property::Map retMap;
     mImpl->mTransform.GetPropertyMap( retMap );
-    Vector2 offSet = retMap.Find( Dali::Toolkit::Visual::Transform::Property::OFFSET )->Get< Vector2 >();
-    info.offSet = offSet;
+    Property::Value* offsetValue = retMap.Find( Dali::Toolkit::Visual::Transform::Property::OFFSET );
+    if( offsetValue )
+    {
+      offsetValue->Get( info.offSet );
+    }
 
     // Create a textureset in the default renderer.
     CreateTextureSet( info, mImpl->mRenderer, sampler, hasMultipleTextColors, containsColorGlyph, styleEnabled );