diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 14:20:27 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 14:20:27 +0000 |
commit | 5c6ab7302aba01b6eeb056d91ee1e0c342824971 (patch) | |
tree | 845c55d59be0b30c8e1a73da5757e577d3031626 /svtools | |
parent | INTEGRATION: CWS pmladek07_SRC680 (1.10.52); FILE MERGED (diff) | |
download | core-5c6ab7302aba01b6eeb056d91ee1e0c342824971.tar.gz core-5c6ab7302aba01b6eeb056d91ee1e0c342824971.zip |
INTEGRATION: CWS impress131_SRC680 (1.22.80); FILE MERGED
2007/10/17 15:05:30 cl 1.22.80.1: #i8257# use the description if there is no alternative text for an image map entry
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svhtml/htmlout.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx index a114f4e044e9..42d63ba4d5a4 100644 --- a/svtools/source/svhtml/htmlout.cxx +++ b/svtools/source/svhtml/htmlout.cxx @@ -4,9 +4,9 @@ * * $RCSfile: htmlout.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: obo $ $Date: 2007-07-18 08:56:49 $ + * last change: $Author: hr $ $Date: 2007-11-01 15:20:27 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -717,7 +717,10 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream, Out_String( rStream, rTarget, eDestEnc, pNonConvertableChars ) << '\"'; } - const String& rDesc = pObj->GetAltText(); + String rDesc( pObj->GetAltText() ); + if( rDesc.Len() == 0 ) + rDesc = pObj->GetDesc(); + if( rDesc.Len() ) { ((sOut = ' ') += sHTML_O_alt) += "=\""; |