diff options
author | Mark Hung <marklh9@gmail.com> | 2016-05-31 01:22:11 +0800 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-31 16:32:43 +0000 |
commit | 005ae2fa195bddd1073f3d883cf041d9ac80fad1 (patch) | |
tree | 397f767ab8f51172ce9a688e468156d81fc35eba /oox | |
parent | 09981cd6383ecb99e4b6c83b98b03af5cf3ff59b (diff) |
tdf#93883 don't add space to empty paragraph when bullet is turned off.
Change-Id: Ia1bad61cb5585dae0501e8cd657fc84bfea60ab2
Reviewed-on: https://gerrit.libreoffice.org/25679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index a3c40fb18752..c9566bf696ad 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1583,6 +1583,9 @@ void DrawingML::WriteRun( const Reference< XTextRange >& rRun ) sal_Int16 nLevel = -1; GET( nLevel, NumberingLevel ); + bool bNumberingIsNumber = true; + GET( bNumberingIsNumber, NumberingIsNumber ); + bool bIsURLField = false; OUString sFieldValue = GetFieldValue( rRun, bIsURLField ); bool bWriteField = !( sFieldValue.isEmpty() || bIsURLField ); @@ -1590,7 +1593,7 @@ void DrawingML::WriteRun( const Reference< XTextRange >& rRun ) OUString sText = rRun->getString(); //if there is no text following the bullet, add a space after the bullet - if (nLevel !=-1 && sText.isEmpty() ) + if (nLevel !=-1 && bNumberingIsNumber && sText.isEmpty() ) sText=" "; if ( bIsURLField ) |