Index: src/Common/DelftTools.Controls.Swf/Table/TableViewPasteController.cs =================================================================== diff -u -r5fc71a385897af92ccb092f2f969b5709afab85a -r98a7464aa2f9a8163979b8a9d5ac617e412ba3a0 --- src/Common/DelftTools.Controls.Swf/Table/TableViewPasteController.cs (.../TableViewPasteController.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) +++ src/Common/DelftTools.Controls.Swf/Table/TableViewPasteController.cs (.../TableViewPasteController.cs) (revision 98a7464aa2f9a8163979b8a9d5ac617e412ba3a0) @@ -170,15 +170,9 @@ { TableViewCell topLeft; var selectedRows = TableView.SelectedRowsIndices; - if (selectedRows.Length == 0) - { - topLeft = new TableViewCell(TableView.RowCount, TableView.GetColumnByDisplayIndex(0)); - } - else - { - //start pasting at the first row - topLeft = new TableViewCell(selectedRows[0], TableView.GetColumnByDisplayIndex(0)); - } + topLeft = selectedRows.Length == 0 + ? new TableViewCell(TableView.RowCount, TableView.GetColumnByDisplayIndex(0)) + : new TableViewCell(selectedRows[0], TableView.GetColumnByDisplayIndex(0)); return new RectangleSelection(topLeft, topLeft); }