Revision: 1678 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1678&view=re... Author: frlan Date: 2010-10-24 03:01:27 +0000 (Sun, 24 Oct 2010)
Log Message: ----------- GeanyLaTeX: Fix a segfault introduced with previous commit (oops)
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-10-24 03:01:09 UTC (rev 1677) +++ trunk/geanylatex/src/geanylatex.c 2010-10-24 03:01:27 UTC (rev 1678) @@ -2275,12 +2275,15 @@ { glatex_wizard_generic_toolbar_item = NULL; } - - if ((glatex_add_menu_on_startup == TRUE|| - doc->file_type->id == GEANY_FILETYPES_LATEX) && - main_menu_item == NULL) + + if (doc != NULL) { - add_menu_to_menubar(); + if ((glatex_add_menu_on_startup == TRUE|| + doc->file_type->id == GEANY_FILETYPES_LATEX) && + main_menu_item == NULL) + { + add_menu_to_menubar(); + } }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.