From 4fa32c1b245958d8bed32012206e316ae1a91e56 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Thu, 13 Jul 2006 15:57:28 +0000 Subject: [PATCH] INTEGRATION: CWS jsc7 (1.8.2); FILE MERGED 2006/06/30 13:43:21 sb 1.8.2.1: Fixed CElement::getAttribute (it returned a string the length of the passed in name, not the length of the attribute content ) . --- unoxml/source/dom/element.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx index 24f9ca9de09a..fd202b5ca6ac 100644 --- a/unoxml/source/dom/element.cxx +++ b/unoxml/source/dom/element.cxx @@ -4,9 +4,9 @@ * * $RCSfile: element.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2006-06-20 00:45:53 $ + * last change: $Author: obo $ $Date: 2006-07-13 16:57:28 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -60,8 +60,8 @@ namespace DOM if (m_aNodePtr != NULL) { OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8); - xmlChar *xName = (xmlChar*)o1.getStr(); - aValue = OUString((sal_Char*)xmlGetProp(m_aNodePtr, xName), strlen((char*)xName), RTL_TEXTENCODING_UTF8); + xmlChar *xName = xmlGetProp(m_aNodePtr, (xmlChar*)o1.getStr()); + aValue = OUString((sal_Char*)xName, strlen((char*)xName), RTL_TEXTENCODING_UTF8); } return aValue; }