summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2019-02-19 15:48:25 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-03-04 08:55:55 +0100
commit5feff994b4ccd28d60537bdb8d984b9229bfb4c7 (patch)
tree013f9433764d10f91564032b5caa8d1782c1406f /drawinglayer
parent28239c40430ec4e613d9d936614c5c3853c332c4 (diff)
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 Reviewed-on: https://gerrit.libreoffice.org/68520 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 60f45740b66a..d54d8e1fe1ce 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -1006,15 +1006,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 += " - ";
- }
-
aAlternateDescription += getObjectInfoPrimitive2D()->getTitle();
}