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
d799201c
Kaydet (Commit)
d799201c
authored
Mar 25, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
This one too.
Change-Id: Ie0965d1b61d32c943bde3f295e73423008f6b77b
üst
24c5edc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
29 deletions
+13
-29
compiler.cxx
sc/source/core/tool/compiler.cxx
+13
-29
No files found.
sc/source/core/tool/compiler.cxx
Dosyayı görüntüle @
d799201c
...
@@ -3025,42 +3025,26 @@ bool ScCompiler::IsColRowName( const String& rName )
...
@@ -3025,42 +3025,26 @@ bool ScCompiler::IsColRowName( const String& rName )
nThisTab
<=
rNameRange
.
aEnd
.
Tab
())
)
nThisTab
<=
rNameRange
.
aEnd
.
Tab
())
)
continue
;
// for
continue
;
// for
ScCellIterator
aIter
(
pDoc
,
rNameRange
);
ScCellIterator
aIter
(
pDoc
,
rNameRange
);
for
(
ScBaseCell
*
pCell
=
aIter
.
GetFirst
();
pCell
&&
!
bInList
;
for
(
bool
bHas
=
aIter
.
first
();
bHas
&&
!
bInList
;
bHas
=
aIter
.
next
())
pCell
=
aIter
.
GetNext
()
)
{
{
// Don't crash if cell (via CompileNameFormula) encounters
// Don't crash if cell (via CompileNameFormula) encounters
// a formula cell without code and
// a formula cell without code and
// HasStringData/Interpret/Compile is executed and all that
// HasStringData/Interpret/Compile is executed and all that
// recursive..
// recursive..
// Furthermore, *this* cell won't be touched, since no RPN exists yet.
// Furthermore, *this* cell won't be touched, since no RPN exists yet.
CellType
eType
=
pCell
->
GetCellType
();
CellType
eType
=
aIter
.
getType
();
bool
bOk
=
(
(
eType
==
CELLTYPE_FORMULA
?
bool
bOk
=
false
;
((
ScFormulaCell
*
)
pCell
)
->
GetCode
()
->
GetCodeLen
()
>
0
if
(
eType
==
CELLTYPE_FORMULA
)
&&
((
ScFormulaCell
*
)
pCell
)
->
aPos
!=
aPos
// noIter
:
true
)
);
if
(
bOk
&&
pCell
->
HasStringData
()
)
{
{
String
aStr
;
ScFormulaCell
*
pFC
=
aIter
.
getFormulaCell
();
switch
(
eType
)
bOk
=
(
pFC
->
GetCode
()
->
GetCodeLen
()
>
0
)
&&
(
pFC
->
aPos
!=
aPos
);
{
}
case
CELLTYPE_STRING
:
else
aStr
=
((
ScStringCell
*
)
pCell
)
->
GetString
();
bOk
=
true
;
break
;
case
CELLTYPE_FORMULA
:
if
(
bOk
&&
aIter
.
hasString
())
aStr
=
((
ScFormulaCell
*
)
pCell
)
->
GetString
();
{
break
;
OUString
aStr
=
aIter
.
getString
();
case
CELLTYPE_EDIT
:
aStr
=
((
ScEditCell
*
)
pCell
)
->
GetString
();
break
;
case
CELLTYPE_NONE
:
case
CELLTYPE_VALUE
:
case
CELLTYPE_NOTE
:
#if OSL_DEBUG_LEVEL > 0
case
CELLTYPE_DESTROYED
:
#endif
;
// nothing, prevent compiler warning
break
;
}
if
(
ScGlobal
::
GetpTransliteration
()
->
isEqual
(
aStr
,
aName
)
)
if
(
ScGlobal
::
GetpTransliteration
()
->
isEqual
(
aStr
,
aName
)
)
{
{
aRef
.
InitFlags
();
aRef
.
InitFlags
();
...
...
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