Apache OpenOffice (AOO) Bugzilla – Issue 112171
The syntax: Range("A1")(2, 2) does not work well
Last modified: 2017-05-20 11:29:21 UTC
The syntax: Range("A1")(2, 2) does not work well. Range("A1")(2, 2) should return the value of cell "B2", but it return the value of "A1".
Created attachment 69844 [details] Test case for this issue
Created attachment 69845 [details] Fix patch for this issue
that change looks a little dangerous ( or at least it makes me quite nervous ) CheckArray is called from a couple of places, the change there in vba mode lets everything fall through into the 'Index' processing leg. But.. it seems to me that the intention there is to ensure Methods/Properties never get in there ( because they can get modified I guess ) I would in this case instead create a temporary object in StepARRAYACCESS e.g. something like in the untested code below SbiRuntime::StepARRAYACCESS() { ... if ( bVBAEnabled && ( refVar->ISA(SbxMethod) || refVar->ISA(SbxProperty) ) { SbxVariable* pNew = new SbxVariable( *((SbxVariable*)refVar) ); refVar = pNew; } refVar->SetParameters( refArgv ); PopArgv(); PushVar( CheckArray( refVar ) ); } andreas, any thoughts?
Perhaps also a [From Symphony] issue?
Reset assigne to the default "issues@openoffice.apache.org".