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

preferencesAboutTextFull
Claudio Valerio 11 years ago
parent f973c8b2d2
commit 4e3f45d950
  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 //claudio This is a very bad hack and shows a architectural problem
// source->selectedDocument()->pageCount() != source->pageCount() // source->selectedDocument()->pageCount() != source->pageCount()
if(i>=source->pageCount()) if(i>=source->pageCount() || source->pageAt(i)->isNull())
source->insertThumbPage(i); source->insertThumbPage(i);
const QPixmap* pix = source->pageAt(i); const QPixmap* pix = source->pageAt(i);

Loading…
Cancel
Save