GNOME Bugzilla – Bug 691892
Regression tool generates references with redundant sheet
Last modified: 2013-01-24 21:44:39 UTC
For example, I see =mmult(mmult(mmult('Regression (1)'!$A$21:$B$2797,minverse(mmult(transpose('Regression (1)'!$A$21:$B$2797),'Regression (1)'!$A$21:$B$2797))),transpose('Regression (1)'!$A$21:$B$2797))*munit('Regression (1)'!$B$8+1),'Regression (1)'!$A$21:$A$2797) It is unnecessary to include the sheet in those references since they occur on sheet 'Regression (1)'.
This is not regression specific since several tools call dao_get_rangeref. There is only one call: src/tools/dao.c: return gnm_go_data_vector_new_expr (dao->sheet, gnm_expr_top_new (dao_get_rangeref (dao, ax, ay, bx, ... that might need to set the sheet to non-NULL.
If we were to change dao_get_cellref and dao_get_rangeref, would anything break? Equivalently, do these formula ever need to reach another sheet?
For use in the formulas analysis tools neither dao_get_cellref nor dao_get_rangeref needs to use an external sheet. There is only one place, in dao_go_data_vector, where we might need to have the sheet specified since that creates a GOData to be attached to graph, that at the time of attachment resides on the same sheet.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.