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
9a9b8f0b
Kaydet (Commit)
9a9b8f0b
authored
Tem 03, 2013
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bail early the same way as in
709f6ba6
Change-Id: I8447d776ba315db5ef961818bc577d13e4f35a20
üst
f8dfa3a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
smdetect.cxx
starmath/source/smdetect.cxx
+7
-0
No files found.
starmath/source/smdetect.cxx
Dosyayı görüntüle @
9a9b8f0b
...
@@ -95,6 +95,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
...
@@ -95,6 +95,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
sal_Bool
bRepairPackage
=
sal_False
;
sal_Bool
bRepairPackage
=
sal_False
;
sal_Bool
bRepairAllowed
=
sal_False
;
sal_Bool
bRepairAllowed
=
sal_False
;
bool
bDeepDetection
=
false
;
// now some parameters that can already be in the array, but may be overwritten or new inserted here
// now some parameters that can already be in the array, but may be overwritten or new inserted here
// remember their indices in the case new values must be added to the array
// remember their indices in the case new values must be added to the array
...
@@ -145,6 +146,8 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
...
@@ -145,6 +146,8 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
lDescriptor
[
nProperty
].
Value
>>=
bRepairPackage
;
lDescriptor
[
nProperty
].
Value
>>=
bRepairPackage
;
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DocumentTitle"
)
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DocumentTitle"
)
nIndexOfDocumentTitle
=
nProperty
;
nIndexOfDocumentTitle
=
nProperty
;
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DeepDetection"
)
bDeepDetection
=
lDescriptor
[
nProperty
].
Value
.
get
<
sal_Bool
>
();
}
}
// can't check the type for external filters, so set the "dont" flag accordingly
// can't check the type for external filters, so set the "dont" flag accordingly
...
@@ -230,6 +233,10 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
...
@@ -230,6 +233,10 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
}
}
catch
(
const
WrappedTargetException
&
aWrap
)
catch
(
const
WrappedTargetException
&
aWrap
)
{
{
if
(
!
bDeepDetection
)
// Bail out early unless it's a deep detection.
return
OUString
();
packages
::
zip
::
ZipIOException
aZipException
;
packages
::
zip
::
ZipIOException
aZipException
;
// repairing is done only if this type is requested from outside
// repairing is done only if this type is requested from outside
...
...
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