From faf77fcad105f3252ed93b4e4975dd54d8fb7d76 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm <rt@openoffice.org> Date: Tue, 2 Mar 2004 09:40:38 +0000 Subject: INTEGRATION: CWS draw23master (1.6.80); FILE MERGED 2004/02/26 14:59:46 af 1.6.80.1: #115427# Include fixes for 112544 into SRC680. --- goodies/source/filter.vcl/ieps/ieps.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'goodies') diff --git a/goodies/source/filter.vcl/ieps/ieps.cxx b/goodies/source/filter.vcl/ieps/ieps.cxx index 7d86fe48e808..722a950b1edc 100644 --- a/goodies/source/filter.vcl/ieps/ieps.cxx +++ b/goodies/source/filter.vcl/ieps/ieps.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ieps.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2003-04-24 14:59:45 $ + * last change: $Author: rt $ $Date: 2004-03-02 10:40:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -410,13 +410,14 @@ extern "C" BOOL GraphicImport(SvStream & rStream, Graphic & rGraphic, if ( *pDest == ' ' ) pDest++; nLen = ImplGetLen( pDest, 32 ); - pDest[ nLen ] = 0; + BYTE aOldValue(pDest[ nLen ]); pDest[ nLen ] = 0; if ( strcmp( (const char*)pDest, "none" ) != 0 ) { aString.AppendAscii( " Title:" ); aString.AppendAscii( (char*)pDest ); aString.AppendAscii( "\n" ); } + pDest[ nLen ] = aOldValue; } pDest = ImplSearchEntry( pBuf, (BYTE*)"%%Creator:", nBytesRead - 32, 10 ); if ( pDest ) @@ -425,10 +426,11 @@ extern "C" BOOL GraphicImport(SvStream & rStream, Graphic & rGraphic, if ( *pDest == ' ' ) pDest++; nLen = ImplGetLen( pDest, 32 ); - pDest[ nLen ] = 0; + BYTE aOldValue(pDest[ nLen ]); pDest[ nLen ] = 0; aString.AppendAscii( " Creator:" ); aString.AppendAscii( (char*)pDest ); aString.AppendAscii( "\n" ); + pDest[ nLen ] = aOldValue; } pDest = ImplSearchEntry( pBuf, (BYTE*)"%%CreationDate:", nBytesRead - 32, 15 ); if ( pDest ) @@ -437,13 +439,14 @@ extern "C" BOOL GraphicImport(SvStream & rStream, Graphic & rGraphic, if ( *pDest == ' ' ) pDest++; nLen = ImplGetLen( pDest, 32 ); - pDest[ nLen ] = 0; + BYTE aOldValue(pDest[ nLen ]); pDest[ nLen ] = 0; if ( strcmp( (const char*)pDest, "none" ) != 0 ) { aString.AppendAscii( " CreationDate:" ); aString.AppendAscii( (char*)pDest ); aString.AppendAscii( "\n" ); } + pDest[ nLen ] = aOldValue; } pDest = ImplSearchEntry( pBuf, (BYTE*)"%%LanguageLevel:", nBytesRead - 4, 16 ); if ( pDest ) -- cgit