gnucash stable: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Fri Feb 28 18:56:17 EST 2025
Updated via https://github.com/Gnucash/gnucash/commit/f3b08dde (commit)
via https://github.com/Gnucash/gnucash/commit/ee42f979 (commit)
from https://github.com/Gnucash/gnucash/commit/5ce3a9dd (commit)
commit f3b08ddefb096d9607614e9ed228d1d05e6df5b3
Author: Sherlock <119709043+agwekixj at users.noreply.github.com>
Date: Tue Feb 25 20:17:24 2025 -0800
Bug 798946 - start/end of current/last quarter have off-by-one error
diff --git a/libgnucash/engine/gnc-option-date.cpp b/libgnucash/engine/gnc-option-date.cpp
index fdf954f9a6..7ab556ac34 100644
--- a/libgnucash/engine/gnc-option-date.cpp
+++ b/libgnucash/engine/gnc-option-date.cpp
@@ -524,12 +524,7 @@ gnc_relative_date_to_time64(RelativeDatePeriod period)
now.tm_mon += 6;
break;
case RelativeDateOffset::QUARTER:
- {
- auto delta = (now.tm_mon >= acct_per.tm_mon ?
- ( now.tm_mon - acct_per.tm_mon) % 3 :
- (3 - acct_per.tm_mon - now.tm_mon) % 3);
- now.tm_mon = now.tm_mon - delta;
- }
+ now.tm_mon -= (12 + now.tm_mon - acct_per.tm_mon) % 3;
[[fallthrough]];
case RelativeDateOffset::THREE:
if (reldate_is_prev(period))
commit ee42f979d6d0d21b76eaffd9f989498199688bdf
Author: Sherlock <119709043+agwekixj at users.noreply.github.com>
Date: Thu Jan 9 19:27:13 2025 -0800
Bug 799514 - Pie chart hovering shows wrong information in pop-up
Set intersect to true for pie charts.
diff --git a/gnucash/report/html-chart.scm b/gnucash/report/html-chart.scm
index 7efa8b0df8..58a6e08428 100644
--- a/gnucash/report/html-chart.scm
+++ b/gnucash/report/html-chart.scm
@@ -271,7 +271,8 @@
(gnc:html-chart-get chart '(type)))
(define (gnc:html-chart-set-type! chart type)
- (gnc:html-chart-set! chart '(type) type))
+ (gnc:html-chart-set! chart '(type) type)
+ (gnc:html-chart-set! chart '(options tooltips intersect) (equal? type 'pie)))
(define (gnc:html-chart-title chart)
(gnc:html-chart-get chart '(options title text)))
Summary of changes:
gnucash/report/html-chart.scm | 3 ++-
libgnucash/engine/gnc-option-date.cpp | 7 +------
2 files changed, 3 insertions(+), 7 deletions(-)
More information about the gnucash-changes
mailing list