On Tue, Mar 01, 2005 at 12:20:18PM +0100, Filip Van Raemdonck wrote: > > I have an old account which is still in BEF (Belgian Francs) in grisbi but > has been converted to Euro currency in real life. > I tried the 'Convert to Euro' button in the account details in grisbi, and > it gave me this message: "Impossible to find the Euro currency, it has > probably been deleted.". I downloaded the example.gsb from the grisbi > website, and tried to convert the 'Livret' account which is in FRF (Franc > Français) and got exactly the same message. > In both cases nothing had been converted.
The reason is that the function "devise_name" does not actually return a name but a code instead. Attached patch fixes the issue. Not sure if it is the best way, but it does work and is simple enough... [Note: I see now that it is against a debug version I built before, so it likely won't apply. But it should be easy enough to reimplement on a clean source tree.] Regards, Filip -- If you receive something that says "Send this to everyone you know", PLEASE pretend you don't know me.
--- grisbi-0.5.5-old/src/search_glist.c +++ grisbi-0.5.5/src/search_glist.c @@ -143,9 +143,10 @@ gchar *nom ) { - gchar *dnom = g_strstrip ( devise_name(devise) ); + /*gchar *dnom = g_strstrip ( devise_name(devise) );*/ + gchar *dnom = g_strstrip ( devise -> nom_devise ); g_message ( "Comparing :%s: to :%s: yields %d", dnom, nom, g_strcasecmp ( dnom, nom ) ); - return ( g_strcasecmp ( g_strstrip ( devise_name(devise) ), nom ) ); + return ( g_strcasecmp ( dnom, nom ) ); } /* ************************************************************************************************************ */