From ffef1f9f5d7d0f6beff38e628d0f4b91c61b62d4 Mon Sep 17 00:00:00 2001 From: "Jinho, Lee" Date: Thu, 13 Apr 2017 13:46:48 +0900 Subject: [PATCH 1/1] SVACE issue resolved Change-Id: I24f5e776aaa42d46d3688cf320eb7dc8bdf70f0e --- .../internal/styling/style-manager-impl.cpp | 29 ++++++++-------------- dali-toolkit/internal/visuals/visual-base-impl.cpp | 9 ++++--- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/dali-toolkit/internal/styling/style-manager-impl.cpp b/dali-toolkit/internal/styling/style-manager-impl.cpp index b38d23b..98596eb 100644 --- a/dali-toolkit/internal/styling/style-manager-impl.cpp +++ b/dali-toolkit/internal/styling/style-manager-impl.cpp @@ -34,7 +34,7 @@ namespace { -const char* LANDSCAPE_QUALIFIER = "landscape"; +//const char* LANDSCAPE_QUALIFIER = "landscape"; const char* PORTRAIT_QUALIFIER = "portrait"; const char* FONT_SIZE_QUALIFIER = "fontsize"; @@ -295,23 +295,16 @@ bool StyleManager::LoadJSON( Toolkit::Builder builder, const std::string& jsonFi static void CollectQualifiers( std::vector& qualifiersOut ) { // Append the relevant qualifier for orientation - int orientation = 0; // Get the orientation from the system - switch( orientation ) - { - case 90: - case 270: - { - qualifiersOut.push_back( std::string( LANDSCAPE_QUALIFIER ) ); - break; - } - case 180: - case 0: // fall through - default: - { - qualifiersOut.push_back( std::string( PORTRAIT_QUALIFIER ) ); - break; - } - } + // int orientation = 0; // Get the orientation from the system + /* + //// To Do ///// + Getting orientation from the system, and determine Qualifie LANDSCAPE or PORTRAIT + orientation 0, 180 : PORTRAIT_QUALIFIER (default) + orientation 90, 270 : LANDSCAPE_QUALIFIER + */ + + qualifiersOut.push_back( std::string( PORTRAIT_QUALIFIER ) ); + } /** diff --git a/dali-toolkit/internal/visuals/visual-base-impl.cpp b/dali-toolkit/internal/visuals/visual-base-impl.cpp index c61aeba..8a6f24b 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.cpp +++ b/dali-toolkit/internal/visuals/visual-base-impl.cpp @@ -490,8 +490,11 @@ void Visual::Base::AnimateProperty( Property::Map map; DoCreatePropertyMap( map ); Property::Value* valuePtr = map.Find( Toolkit::DevelVisual::Property::TYPE ); - int visualType; - valuePtr->Get(visualType); + int visualType = -1; + if( valuePtr ) + { + valuePtr->Get( visualType ); + } if( animator.propertyKey == Toolkit::DevelVisual::Property::MIX_COLOR || animator.propertyKey == MIX_COLOR || @@ -509,7 +512,7 @@ void Visual::Base::AnimateProperty( } else if( mImpl->mRenderer ) { - AnimateRendererProperty(transition, animator); + AnimateRendererProperty( transition, animator ); } } -- 2.7.4