summaryrefslogtreecommitdiff
path: root/svtools/source/svhtml
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-11-01 14:20:27 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-11-01 14:20:27 +0000
commit5c6ab7302aba01b6eeb056d91ee1e0c342824971 (patch)
tree845c55d59be0b30c8e1a73da5757e577d3031626 /svtools/source/svhtml
parent194975759a6ca23187deedab820a6a97b9e4081b (diff)
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/source/svhtml')
-rw-r--r--svtools/source/svhtml/htmlout.cxx9
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) += "=\"";