From 168e3ff4cc7bb2d39b8e7f37156f0a14d551f5e7 Mon Sep 17 00:00:00 2001 From: "katpaga.a" Date: Wed, 28 Aug 2013 15:35:25 +0530 Subject: [PATCH] Fix for N_SE-50153 ( E_OBJ_NOT_FOUND) Signed-off-by: katpaga.a Change-Id: I9bba85fe444b76cadcb72033d54a4ee7746932b6 Signed-off-by: katpaga.a --- src/ui/controls/FUiCtrlTableView.cpp | 4 +++- src/ui/controls/FUiCtrl_TableViewPresenter.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/controls/FUiCtrlTableView.cpp b/src/ui/controls/FUiCtrlTableView.cpp index 9056e44..eb6fa24 100644 --- a/src/ui/controls/FUiCtrlTableView.cpp +++ b/src/ui/controls/FUiCtrlTableView.cpp @@ -214,12 +214,14 @@ TableView::GetTopDrawnItemIndex(void) const int TableView::GetBottomDrawnItemIndex(void) const { + result r = E_SUCCESS; const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this); SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use."); int itemIndex = -1; int groupIndex = -1; - pImpl->GetBottomDrawnItemIndex(groupIndex, itemIndex); + r = pImpl->GetBottomDrawnItemIndex(groupIndex, itemIndex); + SetLastResult(r); return itemIndex; } diff --git a/src/ui/controls/FUiCtrl_TableViewPresenter.cpp b/src/ui/controls/FUiCtrl_TableViewPresenter.cpp index 83660f1..3d21514 100644 --- a/src/ui/controls/FUiCtrl_TableViewPresenter.cpp +++ b/src/ui/controls/FUiCtrl_TableViewPresenter.cpp @@ -2441,7 +2441,7 @@ _TableViewPresenter::GetBottomDrawnItem(TableViewItemTag& itemPos) const itemPos.itemIndex = -1; itemPos.groupIndex = -1; - return E_INVALID_STATE; + return E_OBJ_NOT_FOUND; } float scrollPosition = GetScrollPosition() + __pTableView->GetBoundsF().height; -- 2.7.4