f-spot r3747 - in trunk: . src



Author: sdelcroix
Date: Wed Mar 12 08:52:23 2008
New Revision: 3747
URL: http://svn.gnome.org/viewvc/f-spot?rev=3747&view=rev

Log:
2008-03-12  Stephane Delcroix  <sdelcroix novell com>

	* Updater.cs: fixes the dp updating v8 where version names are int.
	bgo #521656


Modified:
   trunk/ChangeLog
   trunk/src/Updater.cs

Modified: trunk/src/Updater.cs
==============================================================================
--- trunk/src/Updater.cs	(original)
+++ trunk/src/Updater.cs	Wed Mar 12 08:52:23 2008
@@ -162,13 +162,14 @@
 					string uri = photo_uri.Scheme + "://" + 
 						photo_uri.Host + 
 						System.IO.Path.GetDirectoryName (photo_uri.AbsolutePath) + "/" +
-						name_without_extension + " (" + (reader [2] as string) + ")" + extension;
+						name_without_extension + " (" + (reader [2]).ToString () + ")" + extension;
+
 					ExecuteNonQuery (new DbCommand (
 						"INSERT INTO photo_versions (photo_id, version_id, name, uri) " +
 						"VALUES (:photo_id, :version_id, :name, :uri)",
 						"photo_id", Convert.ToUInt32 (reader [0]),
 						"version_id", Convert.ToUInt32 (reader [1]),
-						"name", (string)(reader [2]),
+						"name", (reader [2]).ToString (),
 						"uri", uri));
 				}
 



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