VisualElement::GetChildListAt(selection) fixed
authorYouri Sdobnikov <i.sdobnikov@samsung.com>
Wed, 30 Oct 2013 14:07:10 +0000 (16:07 +0200)
committerYouri Sdobnikov <i.sdobnikov@samsung.com>
Wed, 30 Oct 2013 14:07:10 +0000 (16:07 +0200)
Change-Id: Ifd55c910158178cd92aaf7095457b68524334072
Signed-off-by: Youri Sdobnikov <i.sdobnikov@samsung.com>
src/ui/animations/FUiAnim_VisualElementImpl.cpp

index f11244d..1cb3111 100644 (file)
@@ -8737,6 +8737,16 @@ _VisualElementImpl::GetChildListAtN(const Tizen::Graphics::FloatRectangle& selec
                                pChild->GetSelectedI(globalSelection, mode, *list);
                        }
                }
+
+               if (list->GetCount() < 1)
+               {
+                       delete list;
+                       return null;
+               }
+               else
+               {
+                       return list;
+               }
        }
 
        return null;