From d9305ae68bf3707242a96fb1b697c36d6eaf91c4 Mon Sep 17 00:00:00 2001 From: Juergen Funk Date: Tue, 1 Sep 2015 11:03:46 +0200 Subject: tdf#93052 - When save, generate unused list-styles in context.xml First Patch do not solved the problem The evaluation of the 0 is here http://opengrok.libreoffice.org/xref/core/xmloff/source/text/txtparae.cxx#615 and this methode "xNumRule->getCount()" get back the 0. Change-Id: I2a8f53199b0819f36a7d3e1887c75089143b29a9 Reviewed-on: https://gerrit.libreoffice.org/18228 Reviewed-by: Thorsten Behrens Tested-by: Thorsten Behrens --- editeng/source/editeng/eerdll.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editeng/source/editeng/eerdll.cxx b/editeng/source/editeng/eerdll.cxx index 13704f8e7356..bb6cf769cf93 100644 --- a/editeng/source/editeng/eerdll.cxx +++ b/editeng/source/editeng/eerdll.cxx @@ -101,7 +101,7 @@ SfxPoolItem** GlobalEditData::GetDefItems() ppDefItems = new SfxPoolItem*[EDITITEMCOUNT]; // Paragraph attributes: - SvxNumRule aDefaultNumRule( SvxNumRuleFlags::NONE, SVX_MAX_NUM, false ); + SvxNumRule aDefaultNumRule( SvxNumRuleFlags::NONE, 0, false ); ppDefItems[0] = new SvxFrameDirectionItem( FRMDIR_HORI_LEFT_TOP, EE_PARA_WRITINGDIR ); ppDefItems[1] = new SvXMLAttrContainerItem( EE_PARA_XMLATTRIBS ); -- cgit v1.2.3