f-spot r3748 - in branches/FSPOT_0_4_2_STABLE: . src



Author: sdelcroix
Date: Wed Mar 12 08:54:02 2008
New Revision: 3748
URL: http://svn.gnome.org/viewvc/f-spot?rev=3748&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. Backporting the change from r3747.


Modified:
   branches/FSPOT_0_4_2_STABLE/ChangeLog
   branches/FSPOT_0_4_2_STABLE/src/Updater.cs

Modified: branches/FSPOT_0_4_2_STABLE/src/Updater.cs
==============================================================================
--- branches/FSPOT_0_4_2_STABLE/src/Updater.cs	(original)
+++ branches/FSPOT_0_4_2_STABLE/src/Updater.cs	Wed Mar 12 08:54:02 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]