From 4eff85957d83f2e8c7f435e8c2ac7365cf06aec2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 16 Oct 2015 12:25:49 +0200 Subject: [PATCH] kivy: fix amount --- gui/kivy/uix/screens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py index 64c93121f..6be66105c 100644 --- a/gui/kivy/uix/screens.py +++ b/gui/kivy/uix/screens.py @@ -195,7 +195,7 @@ class SendScreen(CScreen): self.ids.message_e.text = uri.get('message', '') amount = uri.get('amount') if amount: - amount_str = str( a / Decimal(self.app.decimal_point())) + amount_str = str( Decimal(amount) / pow(10, self.app.decimal_point())) self.ids.amount_e.text = amount_str + ' ' + self.app.base_unit def do_clear(self):