Commit 729f9f24 authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent de22fb47
......@@ -2458,6 +2458,7 @@ void odf_drawing_context::add_sound(std::wstring href)
presentation_event_listener * event_ = dynamic_cast<presentation_event_listener*>(impl_->current_level_.back().get());
if (event_)
{
event_->attlist_.script_event_name_ = L"dom:click";
event_->attlist_.presentation_action_ = L"sound";
}
......
......@@ -1149,8 +1149,9 @@ void OoxConverter::convert(PPTX::Logic::CNvPr *oox_cnvPr)
if (oox_cnvPr->hlinkClick->snd.IsInit())
{
std::wstring sound = find_link_by_id(oox_cnvPr->hlinkClick->snd->embed.get(), 3);
odf_context()->drawing_context()->add_sound(sound);
std::wstring href = odf_context()->add_media(sound);
odf_context()->drawing_context()->add_sound(href);
}
if (oox_cnvPr->hlinkClick->id.IsInit())
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment