Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Matrix expressions of scalar arguments are not initialized properly | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Calc | Reporter: | remo00 <remo> | ||||||
Component: | programming | Assignee: | AOO issues mailing list <issues> | ||||||
Status: | CONFIRMED --- | QA Contact: | |||||||
Severity: | Trivial | ||||||||
Priority: | P2 | CC: | issues, rb.henschel | ||||||
Version: | OOO300m1 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Attachments: |
|
Description
remo00
2010-06-23 19:21:09 UTC
Created attachment 70178 [details]
example of matrix formulas not displaying properly
Created attachment 70217 [details]
Example ods file. 9 time over 10 formula in Stat"
9 time over 10 formula in "Stat" sheet are not displayed properly in Ooo 3.2 Similar or probably a duplicate of <a href="show_bug.cgi?id=101155">issue 101155</a> I see the described error in DEV300m83 with the attached document. No, I do not think, that it is the same problem as 101155. It looks like a problem with the argument of YEAR and MONTH. I see the data in column A on sheet 'Data' in mixed format, some are language Default and some are in language Italian. If I set the language for all cells in column A to Italian, the errors on sheet 'Stat' vanish after a hard recalculate. I think, that it is a bug, because the argument of YEAR is the internal date number and that should be independent of the language of the display format. I could not reproduce the error to vanish, in DEV300m84 I tried setting all dates to Italian and to Default (en-US) and recalculate each time, but it didn't change. However, two values changed once when I forced a recalculation without changing anything.. This smells like some uninitialized variable somewhere. Interestingly, when exported to .xls and loaded in Excel also Excel displayed #VALUE! for every cell in Stat.C:E. Inspecting the formulas revealed that MONTH($Data.$A$5:$F$303) is the underlying cause, changing that to MONTH($Data.$A$5:$A$303) to use only column A makes the calculation work as intended. Using MONTH on a non-numeric value of other columns produces #VALUE! (since OOo3.2) However, there's a serious flaw with the matrix initialization of the MONTH values, one can easily see with the matrix formula {=MONTH($Data.$A$5:$F$303)} that from the second column on arbitrary values are present, all values should be #VALUE! and not just a few or arbitrary month numbers. These values change when forcing a recalculation. Grabbing issue. Reset assigne to the default "issues@openoffice.apache.org". |