[gnome-calculator/gnome-3-32] Use currency name instead of display name for conversion (fixes #106)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/gnome-3-32] Use currency name instead of display name for conversion (fixes #106)
- Date: Tue, 26 Mar 2019 23:56:03 +0000 (UTC)
commit 6ec977e2c7d31df232dedb2867033234e6d77354
Author: Robert Roth <robert roth off gmail com>
Date: Wed Mar 27 01:55:05 2019 +0200
Use currency name instead of display name for conversion (fixes #106)
src/math-converter.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/math-converter.vala b/src/math-converter.vala
index a83dea24..ee335891 100644
--- a/src/math-converter.vala
+++ b/src/math-converter.vala
@@ -244,7 +244,7 @@ public class MathConverter : Gtk.Grid
var z = convert_equation (x, out from_unit, out to_unit);
if (z != null && from_unit != null && to_unit != null)
{
- equation.set ("%s %s %s %s".printf(equation.serializer.to_string (x),
from_unit.display_name, _("in"), to_unit.display_name));
+ equation.set ("%s %s %s %s".printf(equation.serializer.to_string (x), from_unit.name,
_("in"), to_unit.name));
equation.solve ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]