https://bugs.documentfoundation.org/show_bug.cgi?id=92693

--- Comment #3 from Lionel Elie Mamane <[email protected]> ---
Julien, if you want to take this one, try this:

In the external "jfreereport", in libformula, file
source/org/pentaho/reporting/libraries/formula/function/datetime/MinuteFunction.java,
replace

    final BigDecimal minutesAsInt = minutes.setScale(0,
BigDecimal.ROUND_HALF_UP);
by
    final BigDecimal minutesAsInt = minutes.setScale(0, BigDecimal.ROUND_DOWN);


Since this is an external, you will need to do that by adding a patch in
external/jfreereport/patches/, reference it in
UnpackedTarball_jfreereport_libformula.mk, and build with
--without-system-jfreereport.

(This suggestion is untested, but I'm fairly confident it will work.)

Actually, comparing with the HOURS and SECONDS functions, I think it should be
something like:

    final BigDecimal minutesAsInt =  NumberUtil.performIntRounding(minutes);

That would be even better.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to