Changeset 163 for trunk/Lucide/SOURCE


Ignore:
Timestamp:
Nov 23, 2006, 5:19:24 PM (15 years ago)
Author:
Eugene Romanenko
Message:

djvu: handle document load errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/plugins/ludjvu/ludjvu.cpp

    r155 r163  
    6161{
    6262    if ( termination ) {
    63         /* DLL is detaching from process */
     63        // DLL is detaching from process
    6464    } else {
    65         /* DLL is attaching to process */
     65        // DLL is attaching to process
    6666    }
    6767    return( 1 );
     
    9999            case DDJVU_ERROR:
    100100                // TODO: error message
     101                break;
     102
    101103            default:
    102104                break;
     
    134136    while ( !ddjvu_document_decoding_done( d->d_document ) ) {
    135137        djvu_handle_events( d->d_context );
     138    }
     139
     140    if ( ddjvu_document_decoding_error( d->d_document ) ) {
     141        return FALSE;
    136142    }
    137143
Note: See TracChangeset for help on using the changeset viewer.