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
4e96b278
Kaydet (Commit)
4e96b278
authored
Haz 04, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: tdf#91637 avoid -1 string index
Change-Id: I006040f4589065141310fe2a89b8d2ba3e54ad2c
üst
4cc2fb2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
expfld.cxx
sw/source/core/fields/expfld.cxx
+5
-2
No files found.
sw/source/core/fields/expfld.cxx
Dosyayı görüntüle @
4e96b278
...
@@ -746,8 +746,11 @@ bool SwSeqFieldList::SeekEntry( const _SeqFieldLstElem& rNew, size_t* pP ) const
...
@@ -746,8 +746,11 @@ bool SwSeqFieldList::SeekEntry( const _SeqFieldLstElem& rNew, size_t* pP ) const
sal_Int32
nNum1
=
sNum1
.
toInt32
();
sal_Int32
nNum1
=
sNum1
.
toInt32
();
nCmp
=
nNum2
-
nNum1
;
nCmp
=
nNum2
-
nNum1
;
if
(
0
==
nCmp
)
if
(
0
==
nCmp
)
nCmp
=
rCaseColl
.
compareString
(
rTmp2
.
copy
(
nFndPos2
),
{
rTmp1
.
copy
(
nFndPos1
));
OUString
aTmp1
=
nFndPos1
!=
-
1
?
rTmp1
.
copy
(
nFndPos1
)
:
OUString
();
OUString
aTmp2
=
nFndPos2
!=
-
1
?
rTmp2
.
copy
(
nFndPos2
)
:
OUString
();
nCmp
=
rCaseColl
.
compareString
(
aTmp2
,
aTmp1
);
}
}
}
else
else
nCmp
=
rColl
.
compareString
(
rTmp2
,
rTmp1
);
nCmp
=
rColl
.
compareString
(
rTmp2
,
rTmp1
);
...
...
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