SF.net SVN: geany:[4158] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Sun Sep 6 16:50:04 UTC 2009
Revision: 4158
http://geany.svn.sourceforge.net/geany/?rev=4158&view=rev
Author: eht16
Date: 2009-09-06 16:50:04 +0000 (Sun, 06 Sep 2009)
Log Message:
-----------
Fix crash when opening documents.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-09-06 16:49:51 UTC (rev 4157)
+++ trunk/ChangeLog 2009-09-06 16:50:04 UTC (rev 4158)
@@ -10,6 +10,8 @@
Remove trailing spaces (patch by André Hentschel, thanks).
* src/treeviews.c:
Fix a compiler warning.
+ * src/document.c:
+ Fix crash when opening documents.
2009-09-04 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2009-09-06 16:49:51 UTC (rev 4157)
+++ trunk/src/document.c 2009-09-06 16:50:04 UTC (rev 4158)
@@ -1234,7 +1234,7 @@
document_check_disk_status(doc, TRUE); /* force a file changed check */
}
}
- if (reload || (!reload && doc != NULL))
+ if (reload || (!reload && doc == NULL))
{ /* doc possibly changed */
display_filename = utils_str_middle_truncate(utf8_filename, 100);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list