Fixed bug when delete first row in the tableView 78/50778/1
authorsuhyung Eom <suhyung.eom@samsung.com>
Mon, 2 Nov 2015 06:42:11 +0000 (15:42 +0900)
committersuhyung Eom <suhyung.eom@samsung.com>
Mon, 2 Nov 2015 06:43:11 +0000 (15:43 +0900)
Signed-off-by: suhyung Eom <suhyung.eom@samsung.com>
Change-Id: Icab6a391119c35d2e7a56c3ce397927b4b84d2f5

dali-toolkit/internal/controls/table-view/table-view-impl.cpp

index f482fdd..800ac6e 100644 (file)
@@ -412,7 +412,7 @@ void TableView::DeleteRow( unsigned int rowIndex, std::vector<Actor>& removed )
       else if( row >= rowIndex )    // If below of or at the inserted row, decrease row index
       {
         // Decrement index
       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--;
         }
         {
           position.rowIndex--;
         }