diff options
author | jp <jp@openoffice.org> | 2000-09-25 17:57:21 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2000-09-25 17:57:21 +0000 |
commit | d49e7c707a5a21e169b225680ac3da59b198e451 (patch) | |
tree | 56d874cf0c5c3ddb0efce4b868eb5353b372d5e0 /svx | |
parent | 4ca363bae26f2c4959a3545f98095dbf76920119 (diff) |
Bug #78573#: HexToBin - div 2
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svrtf/rtfgrf.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/svrtf/rtfgrf.cxx b/svx/source/svrtf/rtfgrf.cxx index 39407369b825..9455b64edaec 100644 --- a/svx/source/svrtf/rtfgrf.cxx +++ b/svx/source/svrtf/rtfgrf.cxx @@ -2,9 +2,9 @@ * * $RCSfile: rtfgrf.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:01:26 $ + * last change: $Author: jp $ $Date: 2000-09-25 18:57:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -334,7 +334,8 @@ xub_StrLen SvxRTFParser::HexToBin( String& rToken ) else *(pData) = ( nVal << 4 ) & 0xf0; } - return bValidData ? nLen / 4 : STRING_NOTFOUND; + // the len div 2, because 2 character are one byte + return bValidData ? nLen / 2 : STRING_NOTFOUND; } BOOL SvxRTFParser::ReadBmpData( Graphic& rGrf, SvxRTFPictureType& rPicType ) |