summaryrefslogtreecommitdiff
path: root/sw/source/filter/docx/swdocxreader.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-05-03 13:51:47 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2017-05-03 13:59:42 +0200
commit168394e5ec5e0b6763f07cac9d915ac462b9c245 (patch)
treeff25ae26a8b2bea2696ac0620db49166393a48ed /sw/source/filter/docx/swdocxreader.cxx
parentfc8e4ebca569428e07d0b02855e4d09c4b4276be (diff)
AutoText: don't add empty paragraph at the end
Change-Id: Idf255ea87982a2c95c129ac34864779700861e69
Diffstat (limited to 'sw/source/filter/docx/swdocxreader.cxx')
-rw-r--r--sw/source/filter/docx/swdocxreader.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/docx/swdocxreader.cxx b/sw/source/filter/docx/swdocxreader.cxx
index 8a20cf0d2a8a..7558b4dfba10 100644
--- a/sw/source/filter/docx/swdocxreader.cxx
+++ b/sw/source/filter/docx/swdocxreader.cxx
@@ -139,7 +139,7 @@ bool SwDOCXReader::MakeEntries( SwDoc *pD, SwTextBlocks &rBlocks )
aPam.SetMark();
{
SwNodeIndex& rIdx = aPam.GetPoint()->nNode;
- rIdx = aStart.GetNode().EndOfSectionIndex() - 1;
+ rIdx = aStart.GetNode().EndOfSectionIndex() - 2;
if( ( nullptr == ( pCNd = rIdx.GetNode().GetContentNode() ) ) )
{
++rIdx;