From 835cea6bea0b4a1783d8e50f9b0ca1abe5cd3701 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 11 Apr 2012 15:55:18 +0200 Subject: write proper title and description for wp:docPr --- sw/source/filter/ww8/docxattributeoutput.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index ae25879596e2..30d24b832ff4 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -2103,11 +2103,11 @@ void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode& rGrfNode, const Size } } // picture description - // TODO the right image description m_pSerializer->startElementNS( XML_wp, XML_docPr, XML_id, "1", XML_name, "Picture", - XML_descr, "A description...", + XML_title, OUStringToOString( rGrfNode.GetTitle(), RTL_TEXTENCODING_UTF8 ).getStr(), + XML_descr, OUStringToOString( rGrfNode.GetDescription(), RTL_TEXTENCODING_UTF8 ).getStr(), FSEND ); // TODO hyperlink // m_pSerializer->singleElementNS( XML_a, XML_hlinkClick, -- cgit