[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Fix float parsing error (bug #16295)

noreply at xfce.org noreply at xfce.org
Wed Jan 15 11:52:26 CET 2020


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 378c7881fe8cced2a2202373d5674ca8067d73e2
Author: Gusti Ridhoni Syahputera <syahputera.doni at gmail.com>
Date:   Sun Dec 22 20:02:35 2019 +0800

    Fix float parsing error (bug #16295)
    
    Signed-off-by: Sean Davis <smd.seandavis at gmail.com>
---
 src/xfce4-screensaver-configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfce4-screensaver-configure b/src/xfce4-screensaver-configure
index 7a102be..585ae69 100755
--- a/src/xfce4-screensaver-configure
+++ b/src/xfce4-screensaver-configure
@@ -80,7 +80,7 @@ class XfconfChannel:
         return self._set_property("bool", prop, value)
 
     def get_double(self, prop, default):
-        return float(self._get_property(prop, default))
+        return locale.atof(self._get_property(prop, default))
 
     def set_double(self, prop, value):
         return self._set_property("double", prop, value)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list