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
0e63ca4f
Kaydet (Commit)
0e63ca4f
authored
Nis 11, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#77300: Do the same for the shared formula case as well.
Change-Id: I560b0beabe81907e3f85d8845041a9df25d2200d
üst
ed9d6063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
column4.cxx
sc/source/core/data/column4.cxx
+19
-16
No files found.
sc/source/core/data/column4.cxx
Dosyayı görüntüle @
0e63ca4f
...
@@ -637,23 +637,26 @@ public:
...
@@ -637,23 +637,26 @@ public:
ScFormulaCell
*
pTop
=
*
rEntry
.
mpCells
;
ScFormulaCell
*
pTop
=
*
rEntry
.
mpCells
;
OUString
aFormula
=
pTop
->
GetHybridFormula
();
OUString
aFormula
=
pTop
->
GetHybridFormula
();
// Create a new token array from the hybrid formula string, and
if
(
!
aFormula
.
isEmpty
())
// set it to the group.
ScCompiler
aComp
(
mrCompileFormulaCxt
,
pTop
->
aPos
);
ScTokenArray
*
pNewCode
=
aComp
.
CompileString
(
aFormula
);
ScFormulaCellGroupRef
xGroup
=
pTop
->
GetCellGroup
();
assert
(
xGroup
);
xGroup
->
setCode
(
pNewCode
);
xGroup
->
compileCode
(
*
mpDoc
,
pTop
->
aPos
,
mpDoc
->
GetGrammar
());
// Propagate the new token array to all formula cells in the group.
ScFormulaCell
**
pp
=
rEntry
.
mpCells
;
ScFormulaCell
**
ppEnd
=
pp
+
rEntry
.
mnLength
;
for
(;
pp
!=
ppEnd
;
++
pp
)
{
{
ScFormulaCell
*
p
=
*
pp
;
// Create a new token array from the hybrid formula string, and
p
->
SyncSharedCode
();
// set it to the group.
p
->
SetDirty
();
ScCompiler
aComp
(
mrCompileFormulaCxt
,
pTop
->
aPos
);
ScTokenArray
*
pNewCode
=
aComp
.
CompileString
(
aFormula
);
ScFormulaCellGroupRef
xGroup
=
pTop
->
GetCellGroup
();
assert
(
xGroup
);
xGroup
->
setCode
(
pNewCode
);
xGroup
->
compileCode
(
*
mpDoc
,
pTop
->
aPos
,
mpDoc
->
GetGrammar
());
// Propagate the new token array to all formula cells in the group.
ScFormulaCell
**
pp
=
rEntry
.
mpCells
;
ScFormulaCell
**
ppEnd
=
pp
+
rEntry
.
mnLength
;
for
(;
pp
!=
ppEnd
;
++
pp
)
{
ScFormulaCell
*
p
=
*
pp
;
p
->
SyncSharedCode
();
p
->
SetDirty
();
}
}
}
}
}
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