fixed bug (N_SE-56621)
authorChulheon <ch.jeong47@samsung.com>
Tue, 29 Oct 2013 10:18:07 +0000 (19:18 +0900)
committerChulheon <ch.jeong47@samsung.com>
Tue, 29 Oct 2013 10:18:07 +0000 (19:18 +0900)
Change-Id: I30c67ebd5f7de580db4a250b961f808bbcea1059

src/ui/controls/FUiCtrl_EditPresenter.cpp

index 4709a8c..9c15a18 100644 (file)
@@ -9155,7 +9155,7 @@ _EditPresenter::SetTextSize(const int size)
                }
        }
 
-       if (IsGuideTextActivated())
+       if (__pGuideTextObject)
        {
                r = __pGuideTextObject->SetFont(__pFont, 0, __pGuideTextObject->GetTextLength());
                SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
@@ -9189,7 +9189,7 @@ _EditPresenter::SetTextSize(const float size)
                }               
        }
 
-       if (IsGuideTextActivated())
+       if (__pGuideTextObject)
        {
                r = __pGuideTextObject->SetFont(__pFont, 0, __pGuideTextObject->GetTextLength());
                SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
@@ -9216,7 +9216,7 @@ _EditPresenter::SetFont(const Font& font)
                SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "Unable to set font.");
        }
 
-       if (IsGuideTextActivated())
+       if (__pGuideTextObject)
        {
                r = __pGuideTextObject->SetFont(__pFont, 0, __pGuideTextObject->GetTextLength());
                SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "Unable to set font.");
@@ -9459,7 +9459,7 @@ _EditPresenter::SetTextStyle(unsigned long textStyle)
                SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
        }
 
-       if (IsGuideTextActivated())
+       if (__pGuideTextObject)
        {
                r = __pGuideTextObject->SetFont(__pFont, 0, __pGuideTextObject->GetTextLength());
                SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");