--- /src/PdfMod/Gui/DocumentIconView.cs 2011-03-03 16:51:49.000000000 +0100 +++ /src/PdfMod/Gui/DocumentIconView.cs 2011-06-22 22:36:21.612425802 +0200 @@ -319,7 +319,7 @@ if (to_index < 0) return; - var pages = args.SelectionData.Data as Hyena.Gui.DragDropList; + Hyena.Gui.DragDropList pages = args.SelectionData; to_index -= pages.Count (p => p.Index < to_index); var action = new MoveAction (document, pages, to_index); action.Do ();