Re: patch for ie_imp_PDF.cpp

From: Dom Lachowicz <domlachowicz_at_yahoo.com>
Date: Wed Jun 29 2005 - 04:23:38 CEST

Thanks, Jean.

--- Jean Bréfort <jean.brefort@normalesup.org> wrote:

> Hi,
>
> the recognizeContents method is buggy. Attached
> patch fixes it.
>
> Cheers,
> Jean
> > Index: wp/impexp/pdf/xp/ie_imp_PDF.cpp
>
===================================================================
> RCS file:
>
/cvsroot/abiword-plugins/wp/impexp/pdf/xp/ie_imp_PDF.cpp,v
> retrieving revision 1.1
> diff -u -5 -r1.1 ie_imp_PDF.cpp
> --- wp/impexp/pdf/xp/ie_imp_PDF.cpp 17 Mar 2005
> 05:11:53 -0000 1.1
> +++ wp/impexp/pdf/xp/ie_imp_PDF.cpp 28 Jun 2005
> 17:57:00 -0000
> @@ -119,11 +119,11 @@
> }
>
> virtual UT_Confidence_t recognizeContents (const
> char * szBuf,
> UT_uint32 iNumbytes)
> {
> - if (strncmp (szBuf, "%PDF-", 6))
> + if (!strncmp (szBuf, "%PDF-", 5))
> return UT_CONFIDENCE_PERFECT;
> return UT_CONFIDENCE_ZILCH;
> }
>
> const char * recognizeContentsType (const char *
> szBuf,
>

                
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
Received on Wed Jun 29 04:23:37 2005

This archive was generated by hypermail 2.1.8 : Wed Jun 29 2005 - 04:23:40 CEST