[pdfmod] [PdfSharp] Fix InvalidCastException



commit 7ca8a23d0bfda63069eaa6f5ddc5ad7f28dfb98a
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Tue Dec 15 13:18:13 2009 -0800

    [PdfSharp] Fix InvalidCastException

 lib/PdfSharp/PdfSharp.Pdf/PdfDictionary.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/PdfSharp/PdfSharp.Pdf/PdfDictionary.cs b/lib/PdfSharp/PdfSharp.Pdf/PdfDictionary.cs
index ab1d7c5..0d3224e 100644
--- a/lib/PdfSharp/PdfSharp.Pdf/PdfDictionary.cs
+++ b/lib/PdfSharp/PdfSharp.Pdf/PdfDictionary.cs
@@ -668,7 +668,7 @@ namespace PdfSharp.Pdf
         if (obj is PdfString)
           date = ((PdfString)obj).Value;
         else if (obj is PdfStringObject)
-          date = ((PdfNameObject)obj).Value;
+          date = ((PdfStringObject)obj).Value;
         else
           throw new InvalidCastException("GetName: Object is not a name.");
 
@@ -1554,4 +1554,4 @@ namespace PdfSharp.Pdf
       }
     }
   }
-}
\ No newline at end of file
+}



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