From: suhyung Eom Date: Mon, 2 Nov 2015 06:42:11 +0000 (+0900) Subject: Fixed bug when delete first row in the tableView X-Git-Tag: dali_1.1.10~11^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F78%2F50778%2F1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Fixed bug when delete first row in the tableView Signed-off-by: suhyung Eom Change-Id: Icab6a391119c35d2e7a56c3ce397927b4b84d2f5 --- diff --git a/dali-toolkit/internal/controls/table-view/table-view-impl.cpp b/dali-toolkit/internal/controls/table-view/table-view-impl.cpp index f482fdd..800ac6e 100644 --- a/dali-toolkit/internal/controls/table-view/table-view-impl.cpp +++ b/dali-toolkit/internal/controls/table-view/table-view-impl.cpp @@ -412,7 +412,7 @@ void TableView::DeleteRow( unsigned int rowIndex, std::vector& removed ) else if( row >= rowIndex ) // If below of or at the inserted row, decrease row index { // Decrement index - if( position.rowIndex > 1 ) + if( position.rowIndex > 0 ) { position.rowIndex--; }