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
bf89444c
Kaydet (Commit)
bf89444c
authored
Haz 19, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#707196 Uncaught exception
Change-Id: I4f42040c7e12507365f12d09f80d3641b4d5ca02
üst
c12a2997
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
smdetect.cxx
starmath/source/smdetect.cxx
+17
-7
No files found.
starmath/source/smdetect.cxx
Dosyayı görüntüle @
bf89444c
...
...
@@ -66,17 +66,27 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
if
(
pInStrm
->
remainingSize
()
==
0
)
return
OUString
();
SotStorageRef
aStorage
=
new
SotStorage
(
pInStrm
,
false
)
;
if
(
!
aStorage
->
GetError
()
)
bool
bStorageOk
=
false
;
try
{
if
(
aStorage
->
IsStream
(
"Equation Native"
)
)
SotStorageRef
aStorage
=
new
SotStorage
(
pInStrm
,
false
);
bStorageOk
=
!
aStorage
->
GetError
();
if
(
bStorageOk
)
{
sal_uInt8
nVersion
;
if
(
GetMathTypeVersion
(
aStorage
,
nVersion
)
&&
nVersion
<=
3
)
return
OUString
(
"math_MathType_3x"
);
if
(
aStorage
->
IsStream
(
"Equation Native"
)
)
{
sal_uInt8
nVersion
;
if
(
GetMathTypeVersion
(
aStorage
,
nVersion
)
&&
nVersion
<=
3
)
return
OUString
(
"math_MathType_3x"
);
}
}
}
else
catch
(
const
css
::
ucb
::
ContentCreationException
&
e
)
{
SAL_WARN
(
"starmath"
,
"SmFilterDetect::detect caught "
<<
e
.
Message
);
}
if
(
!
bStorageOk
)
{
// 200 should be enough for the XML
// version, encoding and !DOCTYPE
...
...
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