Re: assert in page breaking

2007-01-24 Thread Han-Wen Nienhuys
Joe Neeman escreveu: > On 1/24/07, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: >> + if (chunks.size () != div.size () + 1) >> +{ >> + programming_error ("did not find a valid page breaking >> configuration"); >> + ignore_div = true; >> + assert (0); >> >> >> this is better, but

Re: assert in page breaking

2007-01-24 Thread Han-Wen Nienhuys
Joe Neeman escreveu: > On 1/24/07, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: >> Joe Neeman escreveu: >> > On 1/24/07, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: >> >> + if (chunks.size () != div.size () + 1) >> >> +{ >> >> + programming_error ("did not find a valid page breaking >> >>

Re: assert in page breaking

2007-01-24 Thread Joe Neeman
On 1/24/07, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: Joe Neeman escreveu: > On 1/24/07, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: >> + if (chunks.size () != div.size () + 1) >> +{ >> + programming_error ("did not find a valid page breaking >> configuration"); >> + ignore_div =

Re: assert in page breaking

2007-01-24 Thread Han-Wen Nienhuys
Joe Neeman escreveu: > On 1/24/07, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: >> + if (chunks.size () != div.size () + 1) >> +{ >> + programming_error ("did not find a valid page breaking >> configuration"); >> + ignore_div = true; >> + assert (0); >> >> >> this is better, but

Re: assert in page breaking

2007-01-24 Thread Han-Wen Nienhuys
Joe Neeman escreveu: > On 1/24/07, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: >> + if (chunks.size () != div.size () + 1) >> +{ >> + programming_error ("did not find a valid page breaking >> configuration"); >> + ignore_div = true; >> + assert (0); >> >> >> this is better, but

Re: assert in page breaking

2007-01-24 Thread Joe Neeman
On 1/24/07, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: + if (chunks.size () != div.size () + 1) +{ + programming_error ("did not find a valid page breaking configuration"); + ignore_div = true; + assert (0); this is better, but can we skip the assert()? If this assert fai

assert in page breaking

2007-01-24 Thread Han-Wen Nienhuys
+ if (chunks.size () != div.size () + 1) +{ + programming_error ("did not find a valid page breaking configuration"); + ignore_div = true; + assert (0); this is better, but can we skip the assert()? The problem with assert is that it prevents people from getting a PDF and loo