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
df71f13b
Kaydet (Commit)
df71f13b
authored
May 09, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rhbz#1071604 don't crash if slide layout configs are missing
Change-Id: I5cbf4ed0683cc5736a45fb980827b1b56bd0c74c
üst
32be757c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
12 deletions
+26
-12
drawdoc.cxx
sd/source/core/drawdoc.cxx
+26
-12
No files found.
sd/source/core/drawdoc.cxx
Dosyayı görüntüle @
df71f13b
...
...
@@ -1008,12 +1008,19 @@ void SdDrawDocument::InitLayoutVector()
const
Reference
<
XDocumentBuilder
>
xDocBuilder
(
DocumentBuilder
::
create
(
comphelper
::
getComponentContext
(
xServiceFactory
)
));
// loop over every layout entry in current file
const
Reference
<
XDocument
>
xDoc
=
xDocBuilder
->
parseURI
(
sFilename
);
const
Reference
<
XNodeList
>
layoutlist
=
xDoc
->
getElementsByTagName
(
"layout"
);
const
int
nElements
=
layoutlist
->
getLength
();
for
(
int
index
=
0
;
index
<
nElements
;
index
++
)
maLayoutInfo
.
push_back
(
layoutlist
->
item
(
index
)
);
try
{
// loop over every layout entry in current file
const
Reference
<
XDocument
>
xDoc
=
xDocBuilder
->
parseURI
(
sFilename
);
const
Reference
<
XNodeList
>
layoutlist
=
xDoc
->
getElementsByTagName
(
"layout"
);
const
int
nElements
=
layoutlist
->
getLength
();
for
(
int
index
=
0
;
index
<
nElements
;
index
++
)
maLayoutInfo
.
push_back
(
layoutlist
->
item
(
index
)
);
}
catch
(
const
uno
::
Exception
&
)
{
// skip missing config. files
}
}
}
...
...
@@ -1037,12 +1044,19 @@ void SdDrawDocument::InitObjectVector()
const
Reference
<
XDocumentBuilder
>
xDocBuilder
(
DocumentBuilder
::
create
(
comphelper
::
getComponentContext
(
xServiceFactory
)
));
// loop over every object entry in current file
const
Reference
<
XDocument
>
xDoc
=
xDocBuilder
->
parseURI
(
sFilename
);
const
Reference
<
XNodeList
>
objectlist
=
xDoc
->
getElementsByTagName
(
"object"
);
const
int
nElements
=
objectlist
->
getLength
();
for
(
int
index
=
0
;
index
<
nElements
;
index
++
)
maPresObjectInfo
.
push_back
(
objectlist
->
item
(
index
)
);
try
{
// loop over every object entry in current file
const
Reference
<
XDocument
>
xDoc
=
xDocBuilder
->
parseURI
(
sFilename
);
const
Reference
<
XNodeList
>
objectlist
=
xDoc
->
getElementsByTagName
(
"object"
);
const
int
nElements
=
objectlist
->
getLength
();
for
(
int
index
=
0
;
index
<
nElements
;
index
++
)
maPresObjectInfo
.
push_back
(
objectlist
->
item
(
index
)
);
}
catch
(
const
uno
::
Exception
&
)
{
// skip missing config. files
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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