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
c8ae30a7
Kaydet (Commit)
c8ae30a7
authored
Ock 19, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svx: ExternalToolEdit: check that temp file is actually created
Change-Id: I03e49493c549561b4dc806f1e191a73d06733cff
üst
e437b130
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
extedit.cxx
svx/source/core/extedit.cxx
+14
-2
No files found.
svx/source/core/extedit.cxx
Dosyayı görüntüle @
c8ae30a7
...
...
@@ -106,11 +106,23 @@ void ExternalToolEdit::Edit(GraphicObject const*const pGraphicObject)
OUString
aTempFileName
;
oslFileHandle
pHandle
;
osl
::
FileBase
::
createTempFile
(
0
,
&
pHandle
,
&
aTempFileBase
);
osl
::
FileBase
::
RC
rc
=
osl
::
FileBase
::
createTempFile
(
0
,
&
pHandle
,
&
aTempFileBase
);
if
(
osl
::
FileBase
::
E_None
!=
rc
)
{
SAL_WARN
(
"svx"
,
"ExternalToolEdit::Edit: cannot create temp file"
);
return
;
}
// Move it to a file name with image extension properly set
aTempFileName
=
aTempFileBase
+
"."
+
OUString
(
fExtension
);
osl
::
File
::
move
(
aTempFileBase
,
aTempFileName
);
// FIXME: this is pretty stupid, need a better osl temp file API
rc
=
osl
::
File
::
move
(
aTempFileBase
,
aTempFileName
);
if
(
osl
::
FileBase
::
E_None
!=
rc
)
{
SAL_WARN
(
"svx"
,
"ExternalToolEdit::Edit: cannot move temp file"
);
return
;
}
//Write Graphic to the Temp File
GraphicFilter
&
rGraphicFilter
=
GraphicFilter
::
GetGraphicFilter
();
...
...
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