diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2016-10-01 21:07:20 -0400 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2016-10-04 03:49:40 +0000 |
commit | 7da2f3ce9f7b049c177a735a146dae84a764d3f7 (patch) | |
tree | d480f25c0e40d0a1a9cd7962a9868fd98fb9e95e | |
parent | f309531cfe1d6a1b6ea1306d45ed3e121145bc5f (diff) |
tdf#93894: Get column labels to work with formula groups.
Change-Id: Ia2a09981dceae2e9809c76570300de8ca1927c1b
Reviewed-on: https://gerrit.libreoffice.org/29514
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 488c893c9842..589bb9b94a19 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -5351,10 +5351,8 @@ bool ScCompiler::HandleColRowName() { ScSingleRefData aRefData; aRefData.InitAddress( aRange.aStart ); - if ( bColName ) - aRefData.SetColRel( true ); - else - aRefData.SetRowRel( true ); + aRefData.SetColRel( true ); + aRefData.SetRowRel( true ); aRefData.SetAddress(aRange.aStart, aPos); pNew->AddSingleReference( aRefData ); } @@ -5362,16 +5360,10 @@ bool ScCompiler::HandleColRowName() { ScComplexRefData aRefData; aRefData.InitRange( aRange ); - if ( bColName ) - { - aRefData.Ref1.SetColRel( true ); - aRefData.Ref2.SetColRel( true ); - } - else - { - aRefData.Ref1.SetRowRel( true ); - aRefData.Ref2.SetRowRel( true ); - } + aRefData.Ref1.SetColRel( true ); + aRefData.Ref2.SetColRel( true ); + aRefData.Ref1.SetRowRel( true ); + aRefData.Ref2.SetRowRel( true ); aRefData.SetRange(aRange, aPos); if ( bInList ) pNew->AddDoubleReference( aRefData ); |