[f-spot: 1/3] bgo #536477: fix division by zero when Picasa upload fails on first pic



commit 2e6697f3b0f11a21fca8f95c0be67f855b5b611c
Author: Lorenzo Milesi <maxxer yetopen it>
Date:   Thu May 28 23:54:22 2009 +0200

    bgo #536477: fix division by zero when Picasa upload fails on first pic
---
 .../PicasaWebExport/PicasaWebExport.addin.xml      |    2 +-
 .../Exporters/PicasaWebExport/PicasaWebExport.cs   |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/extensions/Exporters/PicasaWebExport/PicasaWebExport.addin.xml b/extensions/Exporters/PicasaWebExport/PicasaWebExport.addin.xml
index 6fa3a42..b9c9cc7 100644
--- a/extensions/Exporters/PicasaWebExport/PicasaWebExport.addin.xml
+++ b/extensions/Exporters/PicasaWebExport/PicasaWebExport.addin.xml
@@ -1,5 +1,5 @@
 <Addin namespace="FSpot"
-	version="0.6"
+	version="0.6.0.1"
 	name="PicasaWeb Export"
 	description="This extension allows you to export your photos to PicasaWeb."
 	author="F-Spot team"
diff --git a/extensions/Exporters/PicasaWebExport/PicasaWebExport.cs b/extensions/Exporters/PicasaWebExport/PicasaWebExport.cs
index 357458b..e3455b4 100644
--- a/extensions/Exporters/PicasaWebExport/PicasaWebExport.cs
+++ b/extensions/Exporters/PicasaWebExport/PicasaWebExport.cs
@@ -694,8 +694,11 @@ namespace FSpotGoogleExport {
 					progress_dialog.ProgressText = Catalog.GetString ("Error");
 					System.Console.WriteLine (e);
 
-					if (progress_dialog.PerformRetrySkip ())
+					if (progress_dialog.PerformRetrySkip ()) {
 						photo_index--;
+						if (photo_index == 0)
+							approx_size = 0;
+					}
 				}
 			}
 



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