From cd1de4388cece02a99f7fcde5d5370e4a24f5154 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 28 Jun 2007 18:45:34 +0000 Subject: [PATCH] Fix double values in desired ratio list --- plugins/DesiredRatio/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/DesiredRatio/__init__.py b/plugins/DesiredRatio/__init__.py index 980ae47d0..99fd3b217 100644 --- a/plugins/DesiredRatio/__init__.py +++ b/plugins/DesiredRatio/__init__.py @@ -107,9 +107,11 @@ class DesiredRatio: return rate_dialog.destroy() + value = float(value) # Make sure the value is a float + # Set the ratio in the core and remember the setting self.core.set_ratio(self.unique_ID, value) - self.set_ratios[self.unique_ID] = float(value) + self.set_ratios[self.unique_ID] = value # Update the ratios list if necessary if value not in self.config.get("ratios") and value >= 1: