fix label setfont
authorMyung Jin Kim <critical.kim@samsung.com>
Fri, 29 Mar 2013 10:23:38 +0000 (19:23 +0900)
committerMyung Jin Kim <critical.kim@samsung.com>
Fri, 29 Mar 2013 10:23:38 +0000 (19:23 +0900)
Change-Id: I6264ad014718bc59e0b48d9ac1d0fc7a705862b3

src/ui/controls/FUiCtrl_LabelPresenter.cpp

index fdfbb3a..2bd02f7 100755 (executable)
@@ -133,7 +133,7 @@ _LabelPresenter::InitTextObject(void)
 {
        TextSimple* pSimpleText = null;
 
-       pSimpleText = new (std::nothrow) TextSimple(const_cast<wchar_t*>(__pLabel->GetText().GetPointer()), __pLabel->GetText().GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
+       pSimpleText = new (std::nothrow) TextSimple(const_cast<wchar_t*>(__pLabel->GetText().GetPointer()), __pLabel->GetText().GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL, __pFont);
        SysTryReturn(NID_UI_CTRL, pSimpleText, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
 
        __pTextObject->Construct();
@@ -338,7 +338,6 @@ _LabelPresenter::DrawText(void)
                return;
        }
 
-       TextSimple* pSimpleText = null;
        TextObjectAlignment horizontalAlign = TEXT_OBJECT_ALIGNMENT_CENTER;
        TextObjectAlignment verticalAlign = TEXT_OBJECT_ALIGNMENT_MIDDLE;