]> git.pld-linux.org Git - packages/gnome-calculator.git/blame - EEK-fixed-rate.patch
- updated to 6.0.0
[packages/gnome-calculator.git] / EEK-fixed-rate.patch
CommitLineData
b4c8ba41
ER
1--- gcalctool-5.32.2/src/currency.c~ 2010-10-13 03:25:41.000000000 +0300
2+++ gcalctool-5.32.2/src/currency.c 2011-01-12 18:38:53.916009388 +0200
3@@ -167,7 +167,7 @@
4 }
5
6 len = (xpath_obj->nodesetval) ? xpath_obj->nodesetval->nodeNr : 0;
7- currency_count = len + 1;
8+ currency_count = len + 2;
9 currencies = g_slice_alloc0(sizeof(currency) * currency_count);
10 for (i = 0; i < len; i++) {
11 if (xpath_obj->nodesetval->nodeTab[i]->type == XML_ELEMENT_NODE) {
12@@ -184,6 +184,12 @@
13 mp_set_from_integer(1, &foo);
14 currencies[len].value = foo;
15
16+ // EEK has fixed rate 1 EUR = 15.6466 EEK
17+ currencies[len + 1].short_name = g_strdup("EEK");
18+ MPNumber eek;
19+ mp_set_from_double(15.6466, &eek);
20+ currencies[len + 1].value = eek;
21+
22 xmlXPathFreeObject(xpath_obj);
23 xmlXPathFreeContext(xpath_ctx);
24 xmlFreeDoc(document);
This page took 0.268089 seconds and 4 git commands to generate.