[pdfmod] Fix compilation under Mono 2.10 (bgo#644516)



commit a29cfe7f8f31ce003fa3e307d54d86a2a8e8cf19
Author: Nuno Araujo <nuno araujo russo79 com>
Date:   Mon Mar 21 12:10:52 2011 +0800

    Fix compilation under Mono 2.10 (bgo#644516)
    
    Force use of the overloaded implicit operator of Hyena.Gui.DragDropList
    to solve mono 2.10 compilation problems.
    
    Signed-off-by: Alexander Kojevnikov <alexander kojevnikov com>

 src/PdfMod/Gui/DocumentIconView.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/PdfMod/Gui/DocumentIconView.cs b/src/PdfMod/Gui/DocumentIconView.cs
index 5796c72..386d662 100644
--- a/src/PdfMod/Gui/DocumentIconView.cs
+++ b/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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]