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
8ac129a5
Kaydet (Commit)
8ac129a5
authored
Eyl 10, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Handle IOException during filter detection
Change-Id: Ie2b8b65f0f2b7b34efbba478a7ccda7ef3719bd6
üst
90b0a547
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
svgfilter.cxx
filter/source/svg/svgfilter.cxx
+4
-0
filterdet.cxx
sdext/source/pdfimport/filterdet.cxx
+6
-1
No files found.
filter/source/svg/svgfilter.cxx
Dosyayı görüntüle @
8ac129a5
...
...
@@ -360,6 +360,7 @@ OUString SAL_CALL SVGFilter::detect(Sequence<PropertyValue>& rDescriptor) throw
if
(
!
xInput
.
is
())
return
OUString
();
try
{
if
(
isStreamGZip
(
xInput
))
{
boost
::
scoped_ptr
<
SvStream
>
aStream
(
utl
::
UcbStreamHelper
::
CreateStream
(
xInput
,
true
));
...
...
@@ -387,6 +388,9 @@ OUString SAL_CALL SVGFilter::detect(Sequence<PropertyValue>& rDescriptor) throw
if
(
isStreamSvg
(
xInput
))
return
OUString
(
constFilterName
);
}
}
catch
(
css
::
io
::
IOException
&
e
)
{
SAL_WARN
(
"filter"
,
"caught IOException "
+
e
.
Message
);
}
return
OUString
();
}
...
...
sdext/source/pdfimport/filterdet.cxx
Dosyayı görüntüle @
8ac129a5
...
...
@@ -229,6 +229,8 @@ OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue >& rF
}
if
(
xInput
.
is
()
)
{
oslFileHandle
aFile
=
NULL
;
try
{
uno
::
Reference
<
io
::
XSeekable
>
xSeek
(
xInput
,
uno
::
UNO_QUERY
);
if
(
xSeek
.
is
()
)
xSeek
->
seek
(
0
);
...
...
@@ -255,7 +257,6 @@ OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue >& rF
}
// check for hybrid PDF
oslFileHandle
aFile
=
NULL
;
if
(
bSuccess
&&
(
aURL
.
isEmpty
()
||
!
comphelper
::
isFileUrl
(
aURL
)
)
)
...
...
@@ -297,6 +298,10 @@ OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue >& rF
}
osl_closeFile
(
aFile
);
}
}
catch
(
css
::
io
::
IOException
&
e
)
{
SAL_WARN
(
"sdext.pdfimport"
,
"caught IOException "
+
e
.
Message
);
return
OUString
();
}
OUString
aEmbedMimetype
;
xEmbedStream
=
getAdditionalStream
(
aURL
,
aEmbedMimetype
,
aPwd
,
m_xContext
,
rFilterData
,
false
);
if
(
aFile
)
...
...
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