summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-05-25 14:58:11 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-05-28 19:55:05 +0200
commitdb488f42a900504004d819e2795c18b056500db6 (patch)
tree9a9ff1ea4a2d971981a8abaee0c9ca40f1f580c3 /sw/source/uibase
parent67de15af3debfef0993f39be2bc20e865b803f35 (diff)
tdf#35798: use separate paragraphs for Label elements
Since commit db04be037b611e296ef9f2542322c52ed82d7a2b, empty Database fields are hidden. But since Labels wizard generates a single paragraph with line breaks for the label's text, the hiding feature cannot be used efficiently. Let the individual lines be in individual paragraphs. Change-Id: I27430d54baea88461c2ea9de38baa95d6b7e9e62 Reviewed-on: https://gerrit.libreoffice.org/54800 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 2f11ce0670749b9da20dfb29269b176cb09fb01e) Reviewed-on: https://gerrit.libreoffice.org/54959 Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/app/appenv.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/app/appenv.cxx b/sw/source/uibase/app/appenv.cxx
index 447205517e6e..b5671577c204 100644
--- a/sw/source/uibase/app/appenv.cxx
+++ b/sw/source/uibase/app/appenv.cxx
@@ -124,7 +124,7 @@ OUString InsertLabEnvText( SwWrtShell& rSh, SwFieldMgr& rFieldMgr, const OUStrin
if ( !bField )
rSh.Insert( sTmpText );
}
- rSh.InsertLineBreak();
+ rSh.SplitNode();
}
rSh.DelLeft(); // Again remove last linebreak