[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Small patch for KGhostview
From:       Albert Astals Cid <astals11 () terra ! es>
Date:       2003-05-16 19:07:57
[Download RAW message or body]

It's based on current CVS code, if you try to go fullscreen without having a 
document loaded it segfaults, now it does not and still goes fullscreen

The patch is:

Index: kgvshell.cpp
===================================================================
RCS file: /home/kde/kdegraphics/kghostview/kgvshell.cpp,v
retrieving revision 1.57
diff -u -r1.57 kgvshell.cpp
--- kgvshell.cpp        7 May 2003 15:20:06 -0000       1.57
+++ kgvshell.cpp        16 May 2003 19:05:06 -0000
@@ -261,7 +261,7 @@
        toolBar()->hide();
        m_gvpart->setFullScreen( true );
        showFullScreen();
-       m_gvpart->miniWidget()->fitWidth( width() );
+       if (m_gvpart->document()->isOpen()) m_gvpart->miniWidget()->fitWidth( 
width() );
     }
     else
     {

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic