Summary: | Kghostview in fullscreen mode crashes when clicking anywhere in the open file dialog | ||
---|---|---|---|
Product: | [Unmaintained] kghostview | Reporter: | Boris Dušek <borisdusek> |
Component: | general | Assignee: | Luís Pedro Coelho <luis> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 0.20 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Boris Dušek
2005-08-25 21:51:07 UTC
In KDE-3.5.5 you can not change to fullscreen mode before opening a file. But you can do the following to reproduce: open any pdf file, switch to fullscreen mode, Quit qith Alt-F4. Restart kghostview, right-click to get the popup, select show menubar -> crash SVN commit 602388 by mkoller: BUG: 111517 check 0-pointer to avoid crashes M +6 -0 kgv_miniwidget.cpp --- branches/KDE/3.5/kdegraphics/kghostview/kgv_miniwidget.cpp #602387:602388 @@ -205,11 +205,15 @@ void KGVMiniWidget::lastPage() { + if ( !dsc() ) return; + goToPage( dsc()->page_count() - 1 ); } bool KGVMiniWidget::prevPage() { + if ( !dsc() ) return false; + int new_page = 0; if( dsc()->isStructured() ) { @@ -224,6 +228,8 @@ bool KGVMiniWidget::nextPage() { + if ( !dsc() ) return false; + int new_page = 0; if( dsc()->isStructured() ) { |