[gbrainy] Fix PDF export



commit 2843871467a30ac7d19932ef54cc24f8f342f5e7
Author: Jordi Mas <jmas softcatala org>
Date:   Sun Nov 13 16:39:28 2011 +0100

    Fix PDF export

 src/Clients/Classical/Dialogs/PdfExportDialog.cs |    3 ++-
 src/Core/Main/PdfExporter.cs                     |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Clients/Classical/Dialogs/PdfExportDialog.cs b/src/Clients/Classical/Dialogs/PdfExportDialog.cs
index 45ca341..2e4e2bc 100644
--- a/src/Clients/Classical/Dialogs/PdfExportDialog.cs
+++ b/src/Clients/Classical/Dialogs/PdfExportDialog.cs
@@ -164,7 +164,8 @@ namespace gbrainy.Clients.Classical.Dialogs
 
 			for (int n = 0; n < num_games; n++)
 			{
-				 games [n] = session.PlayList.GetPuzzle ();
+				games [n] = session.PlayList.GetPuzzle ();
+				games [n].translations = translations;
 			}
 
 			if (PdfExporter.GeneratePdf (games, gamespage, filename) == true) {
diff --git a/src/Core/Main/PdfExporter.cs b/src/Core/Main/PdfExporter.cs
index 5675481..6dd6063 100644
--- a/src/Core/Main/PdfExporter.cs
+++ b/src/Core/Main/PdfExporter.cs
@@ -75,8 +75,9 @@ namespace gbrainy.Core.Main
 				((IDisposable)cr).Dispose();
 				return true;
 			}
-			catch (Exception)
+			catch (Exception e)
 			{
+				Console.WriteLine ("PdfExporter.GeneratePdf. Exception: {0}", e);
 				return false;
 			}
 		}



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