[Libreoffice-commits] core.git: oox/source
Charu Tyagi
charu.tyagi at ericsson.com
Sun May 10 12:56:06 PDT 2015
oox/source/export/drawingml.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 2ff13e13f5f1ec7436e99c6ff7c9a863bc1a1572
Author: Charu Tyagi <charu.tyagi at ericsson.com>
Date: Tue Apr 14 15:30:00 2015 +0530
tdf#90607:Issue in bullets not having any text following.
Change-Id: If0571864684ec484e859c967aebb23c378c302ef
Reviewed-on: https://gerrit.libreoffice.org/15298
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 1b0d64f..e504113 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1513,10 +1513,18 @@ void DrawingML::GetUUID( OStringBuffer& rBuffer )
void DrawingML::WriteRun( Reference< XTextRange > rRun )
{
+ Reference< XPropertySet > rXPropSet( rRun, UNO_QUERY );
+ sal_Int16 nLevel = -1;
+ GET( nLevel, NumberingLevel );
+
const char* sFieldType;
bool bIsField = false;
OUString sText = rRun->getString();
+ //if there is no text following the bullet, add a space after the bullet
+ if (nLevel !=-1 && sText.isEmpty() )
+ sText=" ";
+
if( sText.isEmpty())
{
Reference< XPropertySet > xPropSet( rRun, UNO_QUERY );
More information about the Libreoffice-commits
mailing list