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
796cc06c
Kaydet (Commit)
796cc06c
authored
Haz 27, 2012
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i120102# Guard vector access by ensuring vector is not empty.
üst
12d9dd72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
DomainMapperTableHandler.cxx
writerfilter/source/dmapper/DomainMapperTableHandler.cxx
+7
-0
No files found.
writerfilter/source/dmapper/DomainMapperTableHandler.cxx
Dosyayı görüntüle @
796cc06c
...
@@ -507,6 +507,9 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl
...
@@ -507,6 +507,9 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl
CellPropertyValuesSeq_t
aCellProperties
(
m_aCellProperties
.
size
()
);
CellPropertyValuesSeq_t
aCellProperties
(
m_aCellProperties
.
size
()
);
if
(
!
m_aCellProperties
.
empty
())
{
// std::vector< std::vector<PropertyMapPtr> > m_aCellProperties
// std::vector< std::vector<PropertyMapPtr> > m_aCellProperties
PropertyMapVector2
::
const_iterator
aRowOfCellsIterator
=
m_aCellProperties
.
begin
();
PropertyMapVector2
::
const_iterator
aRowOfCellsIterator
=
m_aCellProperties
.
begin
();
PropertyMapVector2
::
const_iterator
aRowOfCellsIteratorEnd
=
m_aCellProperties
.
end
();
PropertyMapVector2
::
const_iterator
aRowOfCellsIteratorEnd
=
m_aCellProperties
.
end
();
...
@@ -516,6 +519,8 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl
...
@@ -516,6 +519,8 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl
//it's a uno::Sequence< beans::PropertyValues >*
//it's a uno::Sequence< beans::PropertyValues >*
RowPropertyValuesSeq_t
*
pCellProperties
=
aCellProperties
.
getArray
();
RowPropertyValuesSeq_t
*
pCellProperties
=
aCellProperties
.
getArray
();
while
(
aRowOfCellsIterator
!=
aRowOfCellsIteratorEnd
)
while
(
aRowOfCellsIterator
!=
aRowOfCellsIteratorEnd
)
{
if
(
!
aRowOfCellsIterator
->
empty
())
{
{
//aRowOfCellsIterator points to a vector of PropertyMapPtr
//aRowOfCellsIterator points to a vector of PropertyMapPtr
PropertyMapVector1
::
const_iterator
aCellIterator
=
aRowOfCellsIterator
->
begin
();
PropertyMapVector1
::
const_iterator
aCellIterator
=
aRowOfCellsIterator
->
begin
();
...
@@ -646,6 +651,8 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl
...
@@ -646,6 +651,8 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl
++
nRow
;
++
nRow
;
++
aRowOfCellsIterator
;
++
aRowOfCellsIterator
;
}
}
}
}
#ifdef DEBUG_DMAPPER_TABLE_HANDLER
#ifdef DEBUG_DMAPPER_TABLE_HANDLER
dmapper_logger
->
endElement
(
"getCellProperties"
);
dmapper_logger
->
endElement
(
"getCellProperties"
);
...
...
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