Show
Ignore:
Timestamp:
06/10/06 06:52:22 (2 years ago)
Author:
jordi
Message:

Now when the document is loaded checks if really it has more than one page before adding the second to the render queue. (I assume that document has at least one page.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/IDocument.cxx

    r201 r206  
    277277IDocument::notifyLoad () 
    278278{ 
    279     // Add the two first pages to the cache. 
     279    // Add the two first pages, if they exists, to the cache. 
    280280    addPageToCache (1); 
    281     addPageToCache (2); 
     281    if ( 1 < getNumPages () ) 
     282    { 
     283        addPageToCache (2); 
     284    } 
    282285 
    283286    for ( GList *item = g_list_first (m_Observers) ; NULL != item ; 
     
    11191122    { 
    11201123        m_CurrentPage = pageNum; 
    1121          
     1124 
    11221125        addPageToCache (m_CurrentPage); 
    11231126        if ( 1 < m_CurrentPage )