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
3bf27eaa
Kaydet (Commit)
3bf27eaa
authored
Nis 15, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't crash on export of fdo60087-2.xlsx to xls
Change-Id: I888828bc88deea16c46895d29f25526bd3c44ce7
üst
0e08fb80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
xelink.cxx
sc/source/filter/excel/xelink.cxx
+12
-12
No files found.
sc/source/filter/excel/xelink.cxx
Dosyayı görüntüle @
3bf27eaa
...
...
@@ -766,14 +766,14 @@ XclExpTabInfo::XclExpTabInfo( const XclExpRoot& rRoot ) :
bool
XclExpTabInfo
::
IsExportTab
(
SCTAB
nScTab
)
const
{
/* Check sheet index before to avoid assertion in GetFlag(). */
return
(
nScTab
<
mnScCnt
)
&&
!
GetFlag
(
nScTab
,
EXC_TABBUF_SKIPMASK
);
return
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
)
&&
!
GetFlag
(
nScTab
,
EXC_TABBUF_SKIPMASK
);
}
bool
XclExpTabInfo
::
IsExternalTab
(
SCTAB
nScTab
)
const
{
/* Check sheet index before to avoid assertion (called from formula
compiler also for deleted references). */
return
(
nScTab
<
mnScCnt
)
&&
GetFlag
(
nScTab
,
EXC_TABBUF_EXTERN
);
return
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
)
&&
GetFlag
(
nScTab
,
EXC_TABBUF_EXTERN
);
}
bool
XclExpTabInfo
::
IsVisibleTab
(
SCTAB
nScTab
)
const
...
...
@@ -788,7 +788,7 @@ bool XclExpTabInfo::IsSelectedTab( SCTAB nScTab ) const
bool
XclExpTabInfo
::
IsDisplayedTab
(
SCTAB
nScTab
)
const
{
OSL_ENSURE
(
nScTab
<
mnScCnt
,
"XclExpTabInfo::IsActiveTab - sheet out of range"
);
OSL_ENSURE
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
,
"XclExpTabInfo::IsActiveTab - sheet out of range"
);
return
GetXclTab
(
nScTab
)
==
mnDisplXclTab
;
}
...
...
@@ -799,31 +799,31 @@ bool XclExpTabInfo::IsMirroredTab( SCTAB nScTab ) const
OUString
XclExpTabInfo
::
GetScTabName
(
SCTAB
nScTab
)
const
{
OSL_ENSURE
(
nScTab
<
mnScCnt
,
"XclExpTabInfo::IsActiveTab - sheet out of range"
);
return
(
nScTab
<
mnScCnt
)
?
maTabInfoVec
[
nScTab
].
maScName
:
OUString
();
OSL_ENSURE
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
,
"XclExpTabInfo::IsActiveTab - sheet out of range"
);
return
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
)
?
maTabInfoVec
[
nScTab
].
maScName
:
OUString
();
}
sal_uInt16
XclExpTabInfo
::
GetXclTab
(
SCTAB
nScTab
)
const
{
return
(
nScTab
<
mnScCnt
)
?
maTabInfoVec
[
nScTab
].
mnXclTab
:
EXC_TAB_DELETED
;
return
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
)
?
maTabInfoVec
[
nScTab
].
mnXclTab
:
EXC_TAB_DELETED
;
}
SCTAB
XclExpTabInfo
::
GetRealScTab
(
SCTAB
nSortedScTab
)
const
{
OSL_ENSURE
(
nSortedScTab
<
mnScCnt
,
"XclExpTabInfo::GetRealScTab - sheet out of range"
);
return
(
nSortedScTab
<
mnScCnt
)
?
maFromSortedVec
[
nSortedScTab
]
:
SCTAB_INVALID
;
OSL_ENSURE
(
nSortedScTab
<
mnScCnt
&&
nSortedScTab
>=
0
,
"XclExpTabInfo::GetRealScTab - sheet out of range"
);
return
(
nSortedScTab
<
mnScCnt
&&
nSortedScTab
>=
0
)
?
maFromSortedVec
[
nSortedScTab
]
:
SCTAB_INVALID
;
}
bool
XclExpTabInfo
::
GetFlag
(
SCTAB
nScTab
,
sal_uInt8
nFlags
)
const
{
OSL_ENSURE
(
nScTab
<
mnScCnt
,
"XclExpTabInfo::GetFlag - sheet out of range"
);
return
(
nScTab
<
mnScCnt
)
&&
::
get_flag
(
maTabInfoVec
[
nScTab
].
mnFlags
,
nFlags
);
OSL_ENSURE
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
,
"XclExpTabInfo::GetFlag - sheet out of range"
);
return
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
)
&&
::
get_flag
(
maTabInfoVec
[
nScTab
].
mnFlags
,
nFlags
);
}
void
XclExpTabInfo
::
SetFlag
(
SCTAB
nScTab
,
sal_uInt8
nFlags
,
bool
bSet
)
{
OSL_ENSURE
(
nScTab
<
mnScCnt
,
"XclExpTabInfo::SetFlag - sheet out of range"
);
if
(
nScTab
<
mnScCnt
)
OSL_ENSURE
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
,
"XclExpTabInfo::SetFlag - sheet out of range"
);
if
(
nScTab
<
mnScCnt
&&
nScTab
>=
0
)
::
set_flag
(
maTabInfoVec
[
nScTab
].
mnFlags
,
nFlags
,
bSet
);
}
...
...
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