[Libreoffice-commits] core.git: Branch 'feature/cib_contract139' - drawinglayer/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Feb 19 15:04:05 UTC 2019


 drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 41a62a8fc5e786d3316c410cb6d118c8edc1adba
Author:     Katarina Behrens <Katarina.Behrens at cib.de>
AuthorDate: Tue Feb 19 15:48:25 2019 +0100
Commit:     Katarina Behrens <Katarina.Behrens at cib.de>
CommitDate: Tue Feb 19 16:01:34 2019 +0100

    Don't include shape/object name when exporting to tagged PDF
    
    most of the time shapes have generated names such as 'Shape 42', those
    have ~no added value so let's not include them in Alt text
    
    Change-Id: I30314d5e901e11722e609dbf7ceddf74c5ed9707

diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 5c06999ce20e..406564ce9f4d 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -1008,15 +1008,10 @@ namespace drawinglayer
                 // for PDF export
                 if(mpPDFExtOutDevData->GetIsExportTaggedPDF() && nullptr != getObjectInfoPrimitive2D())
                 {
-                    OUString aAlternateDescription(getObjectInfoPrimitive2D()->getName());
+                    OUString aAlternateDescription;
 
                     if(!getObjectInfoPrimitive2D()->getTitle().isEmpty())
                     {
-                        if(!aAlternateDescription.isEmpty())
-                        {
-                            aAlternateDescription += OUString(" - ");
-                        }
-
                         aAlternateDescription += getObjectInfoPrimitive2D()->getTitle();
                     }
 


More information about the Libreoffice-commits mailing list