commit bdcd108742b0f71cfbe43a16c848e97805113c93
Author: jordi <jordi@cb4bfb15-1111-0410-82e2-95233c8f1c7e>
Date:   Thu Sep 17 09:14:18 2009 +0000

    Moved the setOutline in MainPter where it logically belongs and this removes the assertion on the command line.
    
    This fixes #167.
    
    
    git-svn-id: svn://svn.emma-soft.com/epdfview/trunk@341 cb4bfb15-1111-0410-82e2-95233c8f1c7e

Index: epdfview/THANKS
===================================================================
--- epdfview.orig/THANKS	2010-08-01 11:42:08.000000000 +0200
+++ epdfview/THANKS	2010-08-01 11:56:31.000000000 +0200
@@ -5,6 +5,7 @@
     - Alex Dedul <rotmer@gmail.com>, for his patch.
     - Alexander <lothalev@gmail.com>, for corrections in the Polish translation.
     - Enrico Tröger <enrico.troeger@uvena.de>, for his full screen patch and others.
+    - ewtoombs <ewtoombs@uwaterloo.ca>, for his patches.
     - Daniel Nylander <po@danielnylander.se>, for his Swedish translation.
     - Daniel Pielmeie <daniel.pielmeie@googlemail.com>, for his patches.
     - Dragonlord <dragonlord@seznam.cz>, for his Czech translation.
Index: epdfview/src/MainPter.cxx
===================================================================
--- epdfview.orig/src/MainPter.cxx	2010-08-01 11:42:08.000000000 +0200
+++ epdfview/src/MainPter.cxx	2010-08-01 11:56:31.000000000 +0200
@@ -144,9 +144,11 @@
         checkZoomSettings ();
 
         // Check if we should see the outlines.
-        showSidebar = (NULL != m_Document->getOutline () &&
-                       0 < m_Document->getOutline ()->getNumChildren () &&
+        showSidebar = (0 < m_Document->getOutline ()->getNumChildren () &&
                        PageModeOutlines == m_Document->getPageMode ());
+        // IDocument::getOutline is set if and only if m_Document is
+        // loaded.
+        view.setOutline (m_Document->getOutline ());
     }
     else
     {
@@ -178,7 +180,6 @@
     // Show the toolbar and status bar depending on the configuration.
     view.showToolbar (config.showToolbar ());
     view.showStatusbar (config.showStatusbar ());
-    view.setOutline (m_Document->getOutline ());
     view.showIndex (showSidebar);
     // Remove the status bar text.
     view.setStatusBarText (NULL);
