pkgsrc-ng/print/pdfmod/patches/patch-src_PdfMod_Gui_DocumentIconView.cs
2016-01-21 23:40:00 +01:00

16 lines
683 B
C#

$NetBSD: patch-src_PdfMod_Gui_DocumentIconView.cs,v 1.1 2014/05/26 09:34:15 wiz Exp $
Fix build with mono-2.10, from git.
--- src/PdfMod/Gui/DocumentIconView.cs.orig 2011-03-03 15:51:49.000000000 +0000
+++ src/PdfMod/Gui/DocumentIconView.cs
@@ -319,7 +319,7 @@ namespace PdfMod.Gui
if (to_index < 0)
return;
- var pages = args.SelectionData.Data as Hyena.Gui.DragDropList<Page>;
+ Hyena.Gui.DragDropList<Page> pages = args.SelectionData;
to_index -= pages.Count (p => p.Index < to_index);
var action = new MoveAction (document, pages, to_index);
action.Do ();