Changeset 206
- Timestamp:
- 06/10/06 06:52:22 (2 years ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
DocumentPage.cxx (modified) (3 diffs)
-
IDocument.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/DocumentPage.cxx
r196 r206 30 30 { 31 31 m_Data = NULL; 32 m_HasSelection = FALSE; 32 m_HasSelection = FALSE; 33 33 m_Height = 0; 34 34 m_LinkList = NULL; … … 212 212 g_assert ( 1 <= width && "Tried to create a 0 width page."); 213 213 g_assert ( 1 <= height && "Tried to create a 0 height page."); 214 214 215 215 m_Width = width; 216 216 m_Height = height; … … 223 223 memset (m_Data, 0xff, dataSize); 224 224 } 225 225 226 226 return NULL != m_Data; 227 227 } -
trunk/src/IDocument.cxx
r201 r206 277 277 IDocument::notifyLoad () 278 278 { 279 // Add the two first pages to the cache.279 // Add the two first pages, if they exists, to the cache. 280 280 addPageToCache (1); 281 addPageToCache (2); 281 if ( 1 < getNumPages () ) 282 { 283 addPageToCache (2); 284 } 282 285 283 286 for ( GList *item = g_list_first (m_Observers) ; NULL != item ; … … 1119 1122 { 1120 1123 m_CurrentPage = pageNum; 1121 1124 1122 1125 addPageToCache (m_CurrentPage); 1123 1126 if ( 1 < m_CurrentPage )
