long click on add page permits to add pdf but on thumbnail generation an error eccours

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent f973c8b2d2
commit c80e93d414
  1. 2
      src/gui/UBDocumentNavigator.cpp

@ -101,7 +101,7 @@ void UBDocumentNavigator::generateThumbnails(UBDocumentContainer* source)
{
//claudio This is a very bad hack and shows a architectural problem
// source->selectedDocument()->pageCount() != source->pageCount()
if(i>=source->pageCount())
if(i>=source->pageCount() || source->pageAt(i)->isNull())
source->insertThumbPage(i);
const QPixmap* pix = source->pageAt(i);

Loading…
Cancel
Save