Commit Graph

28635 Commits

Author SHA1 Message Date
Sherlock
f0d45de642
Resolve test assert. 2024-04-12 15:52:39 -07:00
Sherlock
8d6f748aca
Bug 799281 - Deleting a transaction may trigger a crash
Update qof_collection_lookup_entity() to prevent returning instances marked to be destroyed.
2024-04-12 15:34:14 -07:00
Robert Zelnik
a79c1dd3ce
Translation update by Robert Zelnik <rzelnik@tvorivo.sk> using Weblate
po/sk.po: 94.2% (5248 of 5571 strings; 53 fuzzy)
43 failing checks (0.7%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Co-authored-by: Robert Zelnik <rzelnik@tvorivo.sk>
2024-04-12 17:17:52 +02:00
Christopher Lam
cde6b095c0 Merge branch 'bi-import-segfault' into stable #1899 2024-04-12 23:14:28 +08:00
Christopher Lam
df0fc05223 Merge branch 'more-engine-cpp' into stable #1889 2024-04-12 23:13:50 +08:00
John Ralls
fafc745b1b Bug 799272 - Crashes when pasting a copied transaction
Clear the copied_item, copied_class, and copied_leader_guid on book
close to ensure that they're not carried across sessions.
2024-04-11 17:38:44 -07:00
Christopher Lam
8c94132f13 Bug 799268 - Cannot write a check over $1000
this is caused by d52d226e5b which caused log_val, pow_val, this_part
to be kept as float instead of the original algorithm which required
casting to int.
2024-04-10 13:30:59 +08:00
Christopher Lam
0447e8da3a [gnc-currency-edit.cpp] convert to c++ 2024-04-09 23:37:56 +08:00
Christopher Lam
f2dba525f7 [dialog-commodity.cpp] convert to c++ 2024-04-09 21:07:52 +08:00
Christopher Lam
4f5ee5dc4e [dialog-price-edit-db.cpp] plug GList* leaks
because `namespace_list` and `commodity_list` were being modified in
while loops until they were both nullptr, making g_list_free a
nop. rewrite to plug leaks. also, `list` is a PriceList* which needs
to be gnc_price_unref'd and g_list_freed.
2024-04-09 00:37:26 +08:00
Christian Wehling
233843f151
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2024-04-07 22:02:07 +02:00
наб
c859d51f14
Translation update by наб <nabijaczleweli@nabijaczleweli.xyz> using Weblate
po/pl.po: 71.1% (3963 of 5571 strings; 1090 fuzzy)
305 failing checks (5.4%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/

Co-authored-by: наб <nabijaczleweli@nabijaczleweli.xyz>
2024-04-07 22:02:06 +02:00
Szia Tomi
29342221af
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-07 22:02:05 +02:00
наб
cab6173cd5
Translation update by наб <nabijaczleweli@nabijaczleweli.xyz> using Weblate
po/pl.po: 71.1% (3963 of 5571 strings; 1092 fuzzy)
305 failing checks (5.4%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/

Co-authored-by: наб <nabijaczleweli@nabijaczleweli.xyz>
2024-04-05 19:01:57 +02:00
aleksej0R
5d4ab9e013
Translation update by aleksej0R <omolice@hotmail.fr> using Weblate
po/fr.po: 98.9% (5510 of 5571 strings; 58 fuzzy)
47 failing checks (0.8%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: aleksej0R <omolice@hotmail.fr>
2024-04-05 19:01:57 +02:00
mocsa
8de60c9494
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2024-04-05 19:01:56 +02:00
Szia Tomi
6bd08a3222
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/glossary/hu.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.4% (4201 of 5571 strings; 428 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.3% (4200 of 5571 strings; 429 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/glossary/hu.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.3% (4197 of 5571 strings; 431 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-05 19:01:56 +02:00
John Ralls
3285bb8e6c Merge Guido Falsi's 'i386_site_type_fix' into stable. 2024-04-04 10:23:54 -07:00
Guido Falsi
ca826d155b Use correct literal suffix for size_type.
`std::vector<T,Allocator>::size` returns `size_type`. `%ld` works
fine on 64 bit arches, but fails on 32 bit.

Ref.: https://en.cppreference.com/w/cpp/container/vector/size
      https://en.cppreference.com/w/cpp/types/size_t
2024-04-03 16:07:11 +02:00
Christopher Lam
d100df7ef7 [AccountP.hpp] .h -> .hpp, remove extern "C" {} wrapper 2024-04-02 21:09:40 +08:00
Christopher Lam
a67e4651c3 [Query.cpp] convert to cpp 2024-04-02 21:09:40 +08:00
Christopher Lam
4d9836aac2 [TransLog.cpp] convert to cpp 2024-04-02 21:09:40 +08:00
Christopher Lam
093781c018 [policy.cpp] convert to cpp 2024-04-02 21:09:40 +08:00
Christopher Lam
f913bed7e6 [gnc-engine.cpp] convert to cpp 2024-04-02 21:09:40 +08:00
Christopher Lam
96f041a1d6 [cap-gains.cpp] convert to cpp 2024-04-02 21:09:39 +08:00
Christopher Lam
79b7267cdd [cashobjects.cpp] convert to cpp 2024-04-02 21:09:39 +08:00
Christopher Lam
67d024c11f [Scrub3.cpp] convert to cpp 2024-04-02 21:09:39 +08:00
Christopher Lam
6b5a4d7c11 [Scrub2.cpp] convert to cpp 2024-04-02 21:09:39 +08:00
Christopher Lam
ddfa664601 [Scrub.cpp] convert to cpp 2024-04-02 21:09:39 +08:00
Christopher Lam
dab32807ef [engine/*.cpp] NULL -> nullptr changes
It's the done thing
2024-04-02 21:09:39 +08:00
Christopher Lam
9a85eb4a2a [engine/*.h] add extern "C" {} wrappers 2024-04-02 21:09:39 +08:00
Christopher Lam
b33b864c2f Bug 799262 - Failed import QIF investment
the qif-action check should apply to investment transactions only.
2024-04-02 08:22:54 +08:00
Christopher Lam
9f998892b5 Merge branch 'txn-columns' into stable #1880
Report in Experimental submenu
2024-04-01 19:30:50 +08:00
Christopher Lam
d0b170fd7c [dialog-bi-import.c] insert "" in ListStore when regex match fails
because the liststore data isn't being null-checked. It's easier to
insert "" when the regex match fails thereby allowing strlen
e.g. strlen(date_posted) to return 0 instead of segfaulting.
2024-04-01 10:11:57 +08:00
John Ralls
ac915f34f7 Release GnuCash 5.6 2024-03-30 15:00:10 -07:00
Szia Tomi
79026d6ae9
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.3% (4197 of 5571 strings; 431 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.3% (4197 of 5571 strings; 431 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-03-30 08:02:11 +01:00
John Ralls
ab2cf29754 Reenable ASAN workflow.
This reverts commit 2ec3b57c2f.
2024-03-29 13:53:37 -07:00
Christopher Lam
7107c2e1a2 [import-main-matcher.cpp] remove unnecessary #include "SplitP.h" 2024-03-29 22:09:00 +08:00
Christopher Lam
4945db6b7d [AccountP.h] remove struct members obsolete with 76014f18a0
forgot to remove
2024-03-29 22:08:40 +08:00
Christopher Lam
dc1eb87409 Merge branch 'sixtp-string-converters' into stable #1892 2024-03-28 20:39:03 +08:00
Allan Nordhøy
4b0379f1e9
Translation update by Allan Nordhøy <epost@anotheragency.no> using Weblate
po/nb.po: 86.0% (4795 of 5571 strings; 766 fuzzy)
62 failing checks (1.1%)
Translation: GnuCash/Program (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/nb_NO/

Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
2024-03-27 14:02:07 +01:00
Christopher Lam
6c82a1311b [sixtp-dom-parsers.cpp] use string_to_guint, string_to_guint16 2024-03-26 20:55:25 +08:00
Christopher Lam
249ec9f43a [test-string-converters.cpp] add some string->number tests 2024-03-26 20:55:25 +08:00
Christopher Lam
1f9ea6bc99 [sixtp-utils.cpp] std::from_chars speedup, remove string_to_gint32
Benchmarks running tests 4E6 times:

using sscanf

$ bin/test-string-converters
 elapsed=7.33942s
Executed 92000006 tests. All tests passed.
$ bin/test-string-converters
 elapsed=7.3811s
Executed 92000006 tests. All tests passed.
$ bin/test-string-converters
 elapsed=7.3455s
Executed 92000006 tests. All tests passed.

with std::from_chars

$ bin/test-string-converters
 elapsed=4.47369s
Executed 92000006 tests. All tests passed.
$ bin/test-string-converters
 elapsed=4.46908s
Executed 92000006 tests. All tests passed.
$ bin/test-string-converters
 elapsed=4.47067s
Executed 92000006 tests. All tests passed.
$ bin/test-string-converters
 elapsed=4.48706s
Executed 92000006 tests. All tests passed.
2024-03-26 20:55:00 +08:00
Frank H. Ellenberger
2c25d0bbc0
Translation update by "Frank H. Ellenberger" <frank.h.ellenberger@gmail.com> using Weblate
po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Frank H. Ellenberger <frank.h.ellenberger@gmail.com>
2024-03-25 23:23:13 +01:00
Christian Wehling
07412ab434
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2024-03-25 23:23:13 +01:00
soramikan
b2223094d9
Translation update by soramikan <sora_yana@icloud.com> using Weblate
po/glossary/ja.po: 6.6% (14 of 212 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Japanese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ja/

Translation update  by soramikan <sora_yana@icloud.com> using Weblate

po/ja.po: 88.1% (4912 of 5571 strings; 311 fuzzy)
430 failing checks (7.7%)
Translation: GnuCash/Program (Japanese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ja/

Co-authored-by: soramikan <sora_yana@icloud.com>
2024-03-25 23:23:13 +01:00
Szia Tomi
5fe431d907
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.3% (4197 of 5571 strings; 431 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.3% (4196 of 5571 strings; 432 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.2% (4194 of 5571 strings; 434 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.2% (4194 of 5571 strings; 434 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.2% (4194 of 5571 strings; 434 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.2% (4194 of 5571 strings; 434 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 75.2% (4193 of 5571 strings; 435 fuzzy)
4 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-03-25 23:23:13 +01:00
mocsa
a44130912b
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 75.2% (4192 of 5571 strings; 436 fuzzy)
5 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2024-03-25 23:23:12 +01:00
Arve Eriksson
d0d5663976
Translation update by Arve Eriksson <031299870@telia.com> using Weblate
po/sv.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Swedish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sv/

Co-authored-by: Arve Eriksson <031299870@telia.com>
2024-03-25 23:23:12 +01:00