Changeset 60 for trunk/Lucide


Ignore:
Timestamp:
Jun 30, 2006, 4:09:37 PM (15 years ago)
Author:
Eugene Romanenko
Message:

fixed crash on double clicking an empty area in the navigation pane (closes #38)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/indexWindow.cpp

    r35 r60  
    2222 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
    2323 * in which case the provisions of the LGPL are applicable instead of those
    24  * above. If you wish to allow use of your version of this file only under the 
     24 * above. If you wish to allow use of your version of this file only under the
    2525 * terms of the LGPL, and not to allow others to use your version of this file
    2626 * under the terms of the CDDL, indicate your decision by deleting the
    2727 * provisions above and replace them with the notice and other provisions
    2828 * required by the LGPL. If you do not delete the provisions above, a recipient
    29  * may use your version of this file under the terms of any one of the CDDL 
     29 * may use your version of this file under the terms of any one of the CDDL
    3030 * or the LGPL.
    3131 *
     
    267267                                PNOTIFYRECORDENTER re = (PNOTIFYRECORDENTER)mp2;
    268268                                TreeRecord *tr = (TreeRecord *)re->pRecord;
    269                                 Lucide::dontSwitchPage = true;
    270                                 Lucide::goToPage( tr->page );
    271                                 Lucide::dontSwitchPage = false;
     269                                if ( tr != NULL ) {
     270                                    Lucide::dontSwitchPage = true;
     271                                    Lucide::goToPage( tr->page );
     272                                    Lucide::dontSwitchPage = false;
     273                                }
    272274                            }
    273275                            break;
Note: See TracChangeset for help on using the changeset viewer.