Merge "Fix Slider MARKS GetProperty value" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 9 Aug 2017 14:58:46 +0000 (14:58 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 9 Aug 2017 14:58:46 +0000 (14:58 +0000)
dali-toolkit/internal/controls/slider/slider-impl.cpp

index 213818a..275995d 100755 (executable)
@@ -1378,8 +1378,15 @@ Property::Value Slider::GetProperty( BaseObject* object, Property::Index propert
 
       case Toolkit::Slider::Property::MARKS:
       {
-        // TODO: Need to be able to return a PropertyArray
-        // value = sliderImpl.GetMarks();
+        Property::Value value1( Property::ARRAY );
+        Property::Array* markArray = value1.GetArray();
+
+        if( markArray )
+        {
+          *markArray = sliderImpl.GetMarks();
+        }
+
+        value = value1;
         break;
       }