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
609e1af9
Kaydet (Commit)
609e1af9
authored
Eyl 28, 2013
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor cleanup
Change-Id: I097a9f2a553f163d7af33b7d3e0bac6b79177b7b
üst
d6147420
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
docfld.cxx
sw/source/core/doc/docfld.cxx
+9
-3
No files found.
sw/source/core/doc/docfld.cxx
Dosyayı görüntüle @
609e1af9
...
@@ -1929,15 +1929,21 @@ OUString SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames,
...
@@ -1929,15 +1929,21 @@ OUString SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames,
const
OUString
sNewName
(
lcl_CutOffDBCommandType
(
rNewName
)
);
const
OUString
sNewName
(
lcl_CutOffDBCommandType
(
rNewName
)
);
OUString
sFormula
(
rFormel
);
OUString
sFormula
(
rFormel
);
for
(
s
al_uInt16
i
=
0
;
i
<
rUsedDBNames
.
size
();
++
i
)
for
(
s
ize_t
i
=
0
;
i
<
rUsedDBNames
.
size
();
++
i
)
{
{
const
OUString
sDBName
(
lcl_CutOffDBCommandType
(
rUsedDBNames
[
i
])
);
const
OUString
sDBName
(
lcl_CutOffDBCommandType
(
rUsedDBNames
[
i
])
);
if
(
sDBName
!=
sNewName
)
if
(
sDBName
!=
sNewName
)
{
{
sal_Int32
nPos
=
0
;
sal_Int32
nPos
=
0
;
while
((
nPos
=
sFormula
.
indexOf
(
sDBName
,
nPos
))
>=
0
)
for
(;;
)
{
{
nPos
=
sFormula
.
indexOf
(
sDBName
,
nPos
);
if
(
nPos
<
0
)
{
break
;
}
if
(
sFormula
[
nPos
+
sDBName
.
getLength
()]
==
'.'
&&
if
(
sFormula
[
nPos
+
sDBName
.
getLength
()]
==
'.'
&&
(
!
nPos
||
!
rCC
.
isLetterNumeric
(
sFormula
,
nPos
-
1
)))
(
!
nPos
||
!
rCC
.
isLetterNumeric
(
sFormula
,
nPos
-
1
)))
{
{
...
@@ -1945,7 +1951,7 @@ OUString SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames,
...
@@ -1945,7 +1951,7 @@ OUString SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames,
//prevent re-searching - this is useless and provokes
//prevent re-searching - this is useless and provokes
//endless loops when names containing each other and numbers are exchanged
//endless loops when names containing each other and numbers are exchanged
//e.g.: old ?12345.12345 new: i12345.12345
//e.g.: old ?12345.12345 new: i12345.12345
nPos
=
nPos
+
sNewName
.
getLength
();
nPos
+=
sNewName
.
getLength
();
}
}
}
}
}
}
...
...
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