From e5009a434f84c14f9896044c30979da74bbb9a6f Mon Sep 17 00:00:00 2001 From: "youseong.ji" Date: Fri, 12 Apr 2013 21:00:55 +0900 Subject: [PATCH] Modified the creation time of a property. Change-Id: I1be909157e338b717465e59092dea4f3da4efd70 Signed-off-by: youseong.ji --- src/ui/controls/FUiCtrl_TableViewItem.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ui/controls/FUiCtrl_TableViewItem.cpp b/src/ui/controls/FUiCtrl_TableViewItem.cpp index 14db095..d9b89b4 100644 --- a/src/ui/controls/FUiCtrl_TableViewItem.cpp +++ b/src/ui/controls/FUiCtrl_TableViewItem.cpp @@ -411,9 +411,6 @@ _TableViewItem::Initialize(void) result r = E_SUCCESS; - CreateItemDivider(); - CreateItemAnnexDivider(); - __pHighlightVisualElement = new (std::nothrow) _VisualElement(); SysTryCatch(NID_UI_CTRL, __pHighlightVisualElement != null, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); @@ -1929,8 +1926,16 @@ _TableViewItem::OnBoundsChanged(void) void _TableViewItem::SetDrawingProperty(_ItemDrawingProperty* pDrawingProperty) { + + SysTryReturnVoidResult(NID_UI_CTRL, pDrawingProperty != null, E_INVALID_ARG, "[E_INAVLID_ARG] pDrawingProperty is null"); + __pDrawingProperty = pDrawingProperty; + if(__pDrawingProperty->itemDividerEnabled) + { + CreateItemDivider(); + } + CreateAnnexStyle(); } @@ -2257,6 +2262,7 @@ _TableViewItem::CreateAnnexStyle(void) CreateOnOffButton(); break; case TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING_WITH_DIVIDER: + CreateItemAnnexDivider(); CreateOnOffButton(); break; case TABLE_VIEW_ANNEX_STYLE_DETAILED: -- 2.7.4