diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-10-05 14:00:54 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-10-05 14:00:54 +0000 |
commit | e6bb6194ba8618b51ea7b518871072f221364012 (patch) | |
tree | eb293ca55fd8ad5a33a1d72707339c84620a4c7a /transex3/source/xmlparse.cxx | |
parent | daad0307afd2cee8e86cc3afef9ee35bcf53147d (diff) |
INTEGRATION: CWS hc680pp1 (1.8.20); FILE MERGED
2005/10/04 08:41:44 ufi 1.8.20.2: RESYNC: (1.8-1.9); FILE MERGED
2005/04/28 14:50:49 gh 1.8.20.1: break on identical ISs
Diffstat (limited to 'transex3/source/xmlparse.cxx')
-rw-r--r-- | transex3/source/xmlparse.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/transex3/source/xmlparse.cxx b/transex3/source/xmlparse.cxx index 4ab0ecfc6484..9166ed34b113 100644 --- a/transex3/source/xmlparse.cxx +++ b/transex3/source/xmlparse.cxx @@ -4,9 +4,9 @@ * * $RCSfile: xmlparse.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: rt $ $Date: 2005-09-09 15:04:44 $ + * last change: $Author: kz $ $Date: 2005-10-05 15:00:54 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -565,6 +565,11 @@ void XMLFile::InsertL10NElement( XMLElement* pElement ){ }else{ // Already there elem=pos->second; //(*elem)[langid]=pElement; + if ( (*elem)[ language ] ) + { + fprintf(stdout,"Error: Entry for language double. ID = %s LANG = %s in File %s\n", id.GetBuffer(), language.GetBuffer(), ByteString( sFileName,RTL_TEXTENCODING_ASCII_US ).GetBuffer() ); + exit( -1 ); + } (*elem)[ language ]=pElement; } } |