X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-page-path-effect-impl.cpp;h=89268b3caeddce82c5697b3b2a07bf31df2543b7;hp=50d57a1fad1532255a07c855b33a88931d13eac2;hb=3e39b3bd20678fc2aba9618f782a830014f2062a;hpb=91c61abfba80ae007ca86fd12f25764395b207b0 diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp index 50d57a1..89268b3 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp @@ -18,7 +18,10 @@ // CLASS HEADER #include -//INTERNAL INCLUDES +// EXTERNAL INCLUDES +#include + +// INTERNAL INCLUDES #include namespace Dali @@ -40,20 +43,21 @@ ScrollViewPagePathEffect::ScrollViewPagePathEffect(Path path, const Vector3& for mPathConstrainer.SetProperty( PathConstrainer::Property::FORWARD, forward ); Dali::Property::Value pointsProperty = path.GetProperty(Path::Property::POINTS); - Property::Array points; - pointsProperty.Get(points); - mPathConstrainer.SetProperty( PathConstrainer::Property::POINTS, points ); + mPathConstrainer.SetProperty( PathConstrainer::Property::POINTS, pointsProperty ); pointsProperty = path.GetProperty(Path::Property::CONTROL_POINTS); - pointsProperty.Get(points); - mPathConstrainer.SetProperty( PathConstrainer::Property::CONTROL_POINTS, points ); + mPathConstrainer.SetProperty( PathConstrainer::Property::CONTROL_POINTS, pointsProperty ); //Create linear constrainer - Property::Array pointsLinearConstrainer; - pointsProperty = Property::Value(pointsLinearConstrainer); - pointsProperty.AppendItem(0.0f); - pointsProperty.AppendItem(1.0f); - pointsProperty.AppendItem(0.0f); + pointsProperty = Property::Value(Property::ARRAY); + Property::Array* array = pointsProperty.GetArray(); + + if( array ) + { + array->PushBack(0.0f); + array->PushBack(1.0f); + array->PushBack(0.0f); + } mLinearConstrainer = Dali::LinearConstrainer::New(); mLinearConstrainer.SetProperty( LinearConstrainer::Property::VALUE, pointsProperty ); }