[f-spot/FSPOT_0_6_0_STABLE] Unbreak double develop in ufraws.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] Unbreak double develop in ufraws.
- Date: Tue, 25 Aug 2009 21:07:26 +0000 (UTC)
commit 580031916ea81c7fc8279b75a4376925d658705b
Author: Ruben Vermeersch <ruben savanne be>
Date: Tue Aug 25 22:58:53 2009 +0200
Unbreak double develop in ufraws.
Fixes Bug 591346 - cannot DevelopInUFRaw picture twice
Reverts e6b03488b, which used to work, but apparently doesn't work anymore.
extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs b/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs
index c215f5e..e7d350c 100644
--- a/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs
+++ b/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs
@@ -155,7 +155,16 @@ namespace DevelopInUFRawExtension
private static string GetVersionName (Photo p)
{
- return Catalog.GetString ("Developed in UFRaw");
+ return GetVersionName (p, 1);
+ }
+
+ private static string GetVersionName (Photo p, int i)
+ {
+ string name = Catalog.GetPluralString ("Developed in UFRaw", "Developed in UFRaw ({0})", i);
+ name = String.Format (name, i);
+ if (p.VersionNameExists (name))
+ return GetVersionName (p, i + 1);
+ return name;
}
private System.Uri GetUriForVersionName (Photo p, string version_name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]