SF.net SVN: geany-plugins:[496] trunk/geanylipsum/src/geanylipsum.c
frlan at users.sourceforge.net
frlan at xxxxx
Wed Feb 18 23:10:19 UTC 2009
Revision: 496
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=496&view=rev
Author: frlan
Date: 2009-02-18 23:10:19 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
GeanyLipsum: Don't run dialog when no document is available when using keybinding
Modified Paths:
--------------
trunk/geanylipsum/src/geanylipsum.c
Modified: trunk/geanylipsum/src/geanylipsum.c
===================================================================
--- trunk/geanylipsum/src/geanylipsum.c 2009-02-18 23:09:52 UTC (rev 495)
+++ trunk/geanylipsum/src/geanylipsum.c 2009-02-18 23:10:19 UTC (rev 496)
@@ -93,7 +93,7 @@
doc = document_get_current();
- if (dialogs_show_input_numeric(_("Lipsum-Generator"),
+ if (doc != NULL && dialogs_show_input_numeric(_("Lipsum-Generator"),
_("Enter the length of Lipsum text here"), &value, 1, 5000, 1))
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list