From: Adeel Kazmi Date: Fri, 23 Dec 2016 11:24:09 +0000 (+0000) Subject: Fixed various SVACE errors X-Git-Tag: dali_1.2.20~6 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=bcdd4ccca76425ee5db2c9e991e4430ba9e95a82;hp=5bd894028f19daf459f08340a1482aeb679a87f8 Fixed various SVACE errors Change-Id: Icaf45c9905770ad344c591f6a0f7ae9ed032e225 --- diff --git a/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp b/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp index 23fcd36..7770147 100755 --- a/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 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. @@ -1765,9 +1765,10 @@ Property::Array ItemView::GetLayoutArray() void ItemView::SetLayoutArray( const Property::Array& layouts ) { mlayoutArray = layouts; - if(GetLayoutCount() > 0) + const int layoutCount = GetLayoutCount(); + if( layoutCount > 0 ) { - for(unsigned int index = GetLayoutCount() - 1; index >= 0; --index) + for(int index = layoutCount - 1; index >= 0; --index) { RemoveLayout(index); if(index == 0) break; diff --git a/dali-toolkit/internal/image-loader/atlas-packer.cpp b/dali-toolkit/internal/image-loader/atlas-packer.cpp index 4212188..e02eba6 100644 --- a/dali-toolkit/internal/image-loader/atlas-packer.cpp +++ b/dali-toolkit/internal/image-loader/atlas-packer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 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. @@ -275,7 +275,7 @@ void AtlasPacker::GrowNode( SizeType blockWidth, SizeType blockHeight ) bool shouldGrowRight = canGrowRight && mRoot->rectArea.height >= mRoot->rectArea.width+blockWidth; bool shouldGrowDown = canGrowDown && mRoot->rectArea.width >= mRoot->rectArea.height+blockHeight; - if( canGrowRight && canGrowRight ) + if( canGrowRight && canGrowDown ) { shouldGrowRight = mRoot->rectArea.width+blockWidth <= mRoot->rectArea.height+blockHeight; shouldGrowDown = !shouldGrowRight; diff --git a/dali-toolkit/internal/text/text-model.cpp b/dali-toolkit/internal/text/text-model.cpp index eca74df..5de3e43 100644 --- a/dali-toolkit/internal/text/text-model.cpp +++ b/dali-toolkit/internal/text/text-model.cpp @@ -108,6 +108,7 @@ Model::Model() mScrollPosition(), mHorizontalAlignment( Layout::HORIZONTAL_ALIGN_BEGIN ), mVerticalAlignment( Layout::VERTICAL_ALIGN_TOP ), + mAlignmentOffset( 0.0f ), mElideEnabled( false ) { mLogicalModel = LogicalModel::New();