Fixed TDIS:3912.
authorSyed Khaja Moinuddin <moinuddin.s@samsung.com>
Wed, 20 Mar 2013 02:47:04 +0000 (11:47 +0900)
committerSyed Khaja Moinuddin <moinuddin.s@samsung.com>
Wed, 20 Mar 2013 10:31:43 +0000 (19:31 +0900)
Signed-off-by: Syed Khaja Moinuddin <moinuddin.s@samsung.com>
Change-Id: I780bbabdd17a6908f52c22e1e733d91112c701cd
Signed-off-by: Syed Khaja Moinuddin <moinuddin.s@samsung.com>
src/ui/controls/FUiCtrl_CustomListElements.cpp

index da9d476..8510876 100644 (file)
@@ -613,7 +613,7 @@ _CheckElementView::OnDraw(void)
 
                if (pListBaseImpl)
                {
-                       Color bgColor;
+                       Color bgColor(0, 0, 0, 0);
 
                        if (__pressedState == true)
                        {
@@ -622,22 +622,6 @@ _CheckElementView::OnDraw(void)
                        else
                        {
                                bgColor = pListBaseImpl->GetBackgroundColor();
-                               Color defaultColor(0, 0, 0, 0);
-                               _ContainerImpl* pParent = null;
-
-                               while (bgColor == defaultColor)
-                               {
-                                       pParent = pListBaseImpl->GetParent();
-
-                                       if (pParent)
-                                       {
-                                               bgColor = pParent->GetBackgroundColor();
-                                       }
-                                       else
-                                       {
-                                               break;
-                                       }
-                               }
                        }
 
                        pCanvas->SetBackgroundColor(bgColor);