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
9ccef311
Kaydet (Commit)
9ccef311
authored
May 14, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Do not throw if there is no "images" child in json file tree.
Change-Id: I0b47ed00fecad84859ba3f1751407696878203fb
üst
86cac77f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modeltools.cxx
avmedia/source/framework/modeltools.cxx
+2
-2
No files found.
avmedia/source/framework/modeltools.cxx
Dosyayı görüntüle @
9ccef311
...
@@ -71,7 +71,7 @@ static void lcl_EmbedExternals(const OUString& rSourceURL, uno::Reference<embed:
...
@@ -71,7 +71,7 @@ static void lcl_EmbedExternals(const OUString& rSourceURL, uno::Reference<embed:
// Parse json, read externals' URI and modify this relative URI's so they remain valid in the new context.
// Parse json, read externals' URI and modify this relative URI's so they remain valid in the new context.
std
::
vector
<
std
::
string
>
vExternals
;
std
::
vector
<
std
::
string
>
vExternals
;
ptree
aTree
;
ptree
aTree
,
aEmptyTree
;
try
try
{
{
json_parser
::
read_json
(
sUrl
,
aTree
);
json_parser
::
read_json
(
sUrl
,
aTree
);
...
@@ -85,7 +85,7 @@ static void lcl_EmbedExternals(const OUString& rSourceURL, uno::Reference<embed:
...
@@ -85,7 +85,7 @@ static void lcl_EmbedExternals(const OUString& rSourceURL, uno::Reference<embed:
aTree
.
put
(
"buffers."
+
rVal
.
first
+
".path."
,
sBufferUri
.
substr
(
sBufferUri
.
find_last_of
(
'/'
)
+
1
));
aTree
.
put
(
"buffers."
+
rVal
.
first
+
".path."
,
sBufferUri
.
substr
(
sBufferUri
.
find_last_of
(
'/'
)
+
1
));
}
}
// Images for textures
// Images for textures
BOOST_FOREACH
(
ptree
::
value_type
&
rVal
,
aTree
.
get_child
(
"images"
))
BOOST_FOREACH
(
ptree
::
value_type
&
rVal
,
aTree
.
get_child
(
"images"
,
aEmptyTree
))
{
{
const
std
::
string
sImageUri
(
rVal
.
second
.
get
<
std
::
string
>
(
"path"
));
const
std
::
string
sImageUri
(
rVal
.
second
.
get
<
std
::
string
>
(
"path"
));
vExternals
.
push_back
(
sImageUri
);
vExternals
.
push_back
(
sImageUri
);
...
...
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