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
75e7643e
Kaydet (Commit)
75e7643e
authored
May 10, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#47644 get out of bounds conditions right
Change-Id: Icac9a8337296f92af5007a051f00388a64955178
üst
a24a9804
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
stgstrms.cxx
sot/source/sdstor/stgstrms.cxx
+6
-9
No files found.
sot/source/sdstor/stgstrms.cxx
Dosyayı görüntüle @
75e7643e
...
...
@@ -455,17 +455,14 @@ sal_Bool StgStrm::Pos2Page( sal_Int32 nBytePos )
}
else
{
size_t
nBgnDistance
=
std
::
distance
(
m_aPagesCache
.
begin
(),
aI
);
size_t
nBgnIndex
=
std
::
distance
(
m_aPagesCache
.
begin
(),
aI
);
size_t
nIndex
=
nBgnIndex
+
nRel
;
size_t
nIndex
=
nBgnDistance
+
nRel
;
if
(
nIndex
>
m_aPagesCache
.
size
())
{
nRel
=
m_aPagesCache
.
size
()
-
nBgnDistance
;
if
(
nIndex
>=
m_aPagesCache
.
size
())
nIndex
=
m_aPagesCache
.
size
()
-
1
;
}
else
nRel
=
0
;
size_t
nSuccessfulStepsTaken
=
nIndex
-
nBgnIndex
;
nRel
-=
nSuccessfulStepsTaken
;
nLast
=
nIndex
?
m_aPagesCache
[
nIndex
-
1
]
:
STG_EOF
;
nBgn
=
m_aPagesCache
[
nIndex
];
...
...
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