From 9ead87264328beddddead1c7e878c2aee03e03af Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 12 Sep 2017 13:28:32 +0200 Subject: tdf#112191: Don't export bullets when only one paragraph is selected. Change-Id: Ibea54f857e78a850ea05643743884ae2157dae57 Reviewed-on: https://gerrit.libreoffice.org/42202 Tested-by: Jenkins Reviewed-by: Jan Holesovsky --- sw/source/filter/ascii/ascatr.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw/source/filter/ascii') diff --git a/sw/source/filter/ascii/ascatr.cxx b/sw/source/filter/ascii/ascatr.cxx index 1a3f416ea91f..77b57e4f01dd 100644 --- a/sw/source/filter/ascii/ascatr.cxx +++ b/sw/source/filter/ascii/ascatr.cxx @@ -178,10 +178,12 @@ static Writer& OutASC_SwTextNode( Writer& rWrt, SwContentNode& rNode ) if( bLastNd ) nEnd = rWrt.pCurPam->GetMark()->nContent.GetIndex(); + bool bIsOneParagraph = rWrt.pOrigPam->Start()->nNode == rWrt.pOrigPam->End()->nNode; + SwASC_AttrIter aAttrIter( static_cast(rWrt), rNd, nStrPos ); const SwNumRule* pNumRule = rNd.GetNumRule(); - if (pNumRule && !nStrPos && rWrt.bExportPargraphNumbering) + if (pNumRule && !nStrPos && rWrt.bExportPargraphNumbering && !bIsOneParagraph) { bool bIsOutlineNumRule = pNumRule == rNd.GetDoc()->GetOutlineNumRule(); -- cgit