Kaydet (Commit) b00c73f9 authored tarafından PriyankaGaikwad's avatar PriyankaGaikwad Kaydeden (comit) Miklos Vajna

Fixed for spacing between lines having lineRule "auto" is getting preserved

Problem Desciption:
In "w:spacing" value of "w:lineRule" attribute value is not getting is preserved.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/6675

Change-Id: Ie9c99864bd5a198af94c1d251666bcb3427d955a
üst 5cdd6d28
......@@ -1888,6 +1888,12 @@ DECLARE_OOXML_TEST(testFootnoteParagraphTag, "testFootnote.docx")
assertXPath(pXmlFootnotes, "/w:footnotes/w:footnote[3]/w:p/w:r/w:rPr/w:rStyle","val","Footnotereference");
}
DECLARE_OOXML_TEST(testSpacingLineRule,"table_lineRule.docx")
{
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
assertXPath(pXmlDoc, "/w:document/w:body/w:tbl/w:tr[1]/w:tc[1]/w:p/w:pPr/w:spacing", "lineRule", "auto");
}
#endif
CPPUNIT_PLUGIN_IMPLEMENT();
......
......@@ -4529,6 +4529,9 @@ void AttributeOutputBase::ParaLineSpacing( const SvxLineSpacingItem& rSpacing )
default:
break;
case SVX_LINE_SPACE_AUTO:
nSpace = (short)( ( nSpace * rSpacing.GetPropLineSpace() ) / 100L );
nMulti = 1;
break;
case SVX_LINE_SPACE_FIX:
case SVX_LINE_SPACE_MIN:
{
......
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