PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed May 23, 2018 4:43 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Nov 24, 2012 2:16 pm 
Offline

Joined: Fri Jul 06, 2012 8:29 pm
Posts: 4
I realise that its unfinished but the code that is currently there doesn't skip over the data correctly. This is all I wan to do, I have no interest in the image itself.

Code:
    public CSymbol ScanInlineImage()
    {
      // TODO:
      while (this.currChar != 'E' && this.nextChar != 'I')
        ScanNextChar();
      return CSymbol.None;
    }


If I understand the purpose correctly its just looking for the EI (End Image) operator, but the loop will exit as soon as there is an 'E' or 'I' in the data. The && should really be a ||.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 26, 2012 1:09 pm 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2815
Location: Cologne, Germany
Hi!
Ixpah wrote:
The && should really be a ||.
I guess you're correct.
Thanks for the feedback.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group