[pdfmod] [PdfSharp] Fix PdfOutline removal of children



commit fb8ab8ac1a8232ad2d3a8085ff33f584b60442b7
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Sep 9 10:17:15 2010 -0500

    [PdfSharp] Fix PdfOutline removal of children

 lib/PdfSharp/PdfSharp.Pdf/PdfOutline.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/PdfSharp/PdfSharp.Pdf/PdfOutline.cs b/lib/PdfSharp/PdfSharp.Pdf/PdfOutline.cs
index 6fb2dfd..c15c6ca 100644
--- a/lib/PdfSharp/PdfSharp.Pdf/PdfOutline.cs
+++ b/lib/PdfSharp/PdfSharp.Pdf/PdfOutline.cs
@@ -255,8 +255,8 @@ namespace PdfSharp.Pdf
     {
       // Remove all our children
       var children = Outlines.Cast<PdfOutline> ().ToList ();
-      while (children.Count > 0) {
-        children[0].Remove ();
+      foreach (var child in children) {
+        child.Remove ();
       }
 
       // Remove ourself



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