summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCharu Tyagi <charu.tyagi@ericsson.com>2015-04-14 15:30:00 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-05-10 19:55:45 +0000
commit2ff13e13f5f1ec7436e99c6ff7c9a863bc1a1572 (patch)
tree436560535b1e07fe58b8dd724b004a9cbd72eb2d /oox
parent69b35cb45375c324c1e28fd4547ce874e4894f30 (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 1b0d64f95673..e504113845be 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 );