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
1aff042d
Kaydet (Commit)
1aff042d
authored
Ara 10, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
guard against missing range
Change-Id: Icdb0694b9c1771a475368aeeb4cb11f4ba8b84f3
üst
6093ba60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
31 deletions
+37
-31
lwptablelayout.cxx
lotuswordpro/source/filter/lwptablelayout.cxx
+37
-31
No files found.
lotuswordpro/source/filter/lwptablelayout.cxx
Dosyayı görüntüle @
1aff042d
...
@@ -1122,44 +1122,50 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
...
@@ -1122,44 +1122,50 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
pTableRange
=
pTableRange
->
GetNext
();
pTableRange
=
pTableRange
->
GetNext
();
}
}
if
(
pTableRange
)
if
(
!
pTableRange
)
{
return
;
LwpCellRange
*
pRange
=
static_cast
<
LwpCellRange
*>
(
pTableRange
->
GetCellRangeID
().
obj
().
get
());
LwpFolder
*
pFolder
=
static_cast
<
LwpFolder
*>
(
pRange
->
GetFolderID
().
obj
().
get
());
LwpCellRange
*
pRange
=
static_cast
<
LwpCellRange
*>
(
pTableRange
->
GetCellRangeID
().
obj
().
get
());
LwpObjectID
aRowListID
=
pFolder
->
GetChildHeadID
();
if
(
!
pRange
)
LwpRowList
*
pRowList
=
static_cast
<
LwpRowList
*>
(
aRowListID
.
obj
().
get
());
return
;
LwpFolder
*
pFolder
=
static_cast
<
LwpFolder
*>
(
pRange
->
GetFolderID
().
obj
().
get
());
if
(
!
pFolder
)
return
;
//loop the rowlist
LwpObjectID
aRowListID
=
pFolder
->
GetChildHeadID
();
while
(
nullptr
!=
pRowList
)
LwpRowList
*
pRowList
=
static_cast
<
LwpRowList
*>
(
aRowListID
.
obj
().
get
());
//loop the rowlist
while
(
nullptr
!=
pRowList
)
{
sal_uInt16
nRowID
=
pRowList
->
GetRowID
();
{
{
sal_uInt16
nRowID
=
pRowList
->
GetRowID
();
LwpCellList
*
pCellList
=
static_cast
<
LwpCellList
*>
(
pRowList
->
GetChildHeadID
().
obj
().
get
());
//loop the cellList
while
(
nullptr
!=
pCellList
)
{
{
LwpCellList
*
pCellList
=
static_cast
<
LwpCellList
*>
(
pRowList
->
GetChildHeadID
().
obj
().
get
());
{
//put cell
//loop the cellList
sal_uInt16
nColID
=
pCellList
->
GetColumnID
();
while
(
nullptr
!=
pCellList
)
{
XFCell
*
pCell
=
GetCellsMap
(
nRowID
,
static_cast
<
sal_uInt8
>
(
nColID
));
{
//put cell
if
(
pCell
)
sal_uInt16
nColID
=
pCellList
->
GetColumnID
();
{
pCellList
->
Convert
(
pCell
,
this
);
XFCell
*
pCell
=
GetCellsMap
(
nRowID
,
static_cast
<
sal_uInt8
>
(
nColID
));
if
(
pCell
)
//process paragraph
{
PostProcessParagraph
(
pCell
,
nRowID
,
nColID
);
pCellList
->
Convert
(
pCell
,
this
);
}
else
//process paragraph
{
PostProcessParagraph
(
pCell
,
nRowID
,
nColID
);
//Hidden cell would not be in cellsmap
}
assert
(
false
);
else
{
//Hidden cell would not be in cellsmap
assert
(
false
);
}
}
}
pCellList
=
static_cast
<
LwpCellList
*>
(
pCellList
->
GetNextID
().
obj
().
get
());
}
}
pCellList
=
static_cast
<
LwpCellList
*>
(
pCellList
->
GetNextID
().
obj
().
get
());
}
}
pRowList
=
static_cast
<
LwpRowList
*>
(
pRowList
->
GetNextID
().
obj
().
get
());
}
}
pRowList
=
static_cast
<
LwpRowList
*>
(
pRowList
->
GetNextID
().
obj
().
get
());
}
}
}
catch
(...)
{
}
catch
(...)
{
...
...
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