Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f07601a2
Kaydet (Commit)
f07601a2
authored
Nis 29, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Handle range reference as well for group calculation. Not tested yet.
Change-Id: I3bf58a20f0b8c017862ae23202e4b2272f7c952c
üst
dfc3f290
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
formulacell.cxx
sc/source/core/data/formulacell.cxx
+26
-2
No files found.
sc/source/core/data/formulacell.cxx
Dosyayı görüntüle @
f07601a2
...
@@ -3023,8 +3023,32 @@ bool ScFormulaCell::InterpretFormulaGroup()
...
@@ -3023,8 +3023,32 @@ bool ScFormulaCell::InterpretFormulaGroup()
aRef
.
CalcAbsIfRel
(
aPos
);
aRef
.
CalcAbsIfRel
(
aPos
);
if
(
aRef
.
Ref1
.
IsRowRel
()
||
aRef
.
Ref2
.
IsRowRel
())
if
(
aRef
.
Ref1
.
IsRowRel
()
||
aRef
.
Ref2
.
IsRowRel
())
{
{
// TODO: Implement this.
// Row reference is relative.
return
false
;
bool
bAbsFirst
=
!
aRef
.
Ref1
.
IsRowRel
();
bool
bAbsLast
=
!
aRef
.
Ref2
.
IsRowRel
();
ScAddress
aRefPos
(
aRef
.
Ref1
.
nCol
,
aRef
.
Ref1
.
nRow
,
aRef
.
Ref1
.
nTab
);
size_t
nCols
=
aRef
.
Ref2
.
nCol
-
aRef
.
Ref1
.
nCol
+
1
;
std
::
vector
<
const
double
*>
aArrays
;
aArrays
.
reserve
(
nCols
);
SCROW
nLength
=
xGroup
->
mnLength
;
if
(
!
bAbsLast
)
{
// range end position is relative. Extend it.
nLength
+=
aRef
.
Ref2
.
nRow
-
aRef
.
Ref1
.
nRow
;
}
for
(
SCCOL
i
=
aRef
.
Ref1
.
nCol
;
i
<=
aRef
.
Ref2
.
nCol
;
++
i
)
{
aRefPos
.
SetCol
(
i
);
const
double
*
pArray
=
pDocument
->
FetchDoubleArray
(
aCxt
,
aRefPos
,
nLength
);
if
(
!
pArray
)
return
false
;
aArrays
.
push_back
(
pArray
);
}
formula
::
DoubleVectorRefToken
aTok
(
aArrays
,
nLength
,
bAbsFirst
,
bAbsLast
);
aCode
.
AddToken
(
aTok
);
}
}
else
else
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment