X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fitem-view%2Fitem-view-impl.cpp;h=77701474c8ce4599cc3eff67ff246b3801ce2ffb;hp=23fcd36a6e0cf9c826a6f5ef696101a221739888;hb=bcdd4ccca76425ee5db2c9e991e4430ba9e95a82;hpb=5bd894028f19daf459f08340a1482aeb679a87f8 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;