[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-221-gf76f829)
The branch, master has been updated
via f76f82985f325d436e3522359a5b3f7d0a2344ea (commit)
from f0a96de8b545dbd900e87db6abf54a0b6df830ab (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
gschem/src/i_callbacks.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit f76f82985f325d436e3522359a5b3f7d0a2344ea
Author: Werner Hoch <werner.ho@xxxxxx>
Date: Sat Oct 11 13:13:36 2008 +0200
gschem: prevent hierarchy symbol down there's file [#1861665]
Only try to load real existing files.
:100644 100644 acc390e... c280201... M gschem/src/i_callbacks.c
=========
Changes
=========
commit f76f82985f325d436e3522359a5b3f7d0a2344ea
Author: Werner Hoch <werner.ho@xxxxxx>
Date: Sat Oct 11 13:13:36 2008 +0200
gschem: prevent hierarchy symbol down there's file [#1861665]
Only try to load real existing files.
diff --git a/gschem/src/i_callbacks.c b/gschem/src/i_callbacks.c
index acc390e..c280201 100644
--- a/gschem/src/i_callbacks.c
+++ b/gschem/src/i_callbacks.c
@@ -2916,6 +2916,13 @@ DEFINE_I_CALLBACK(hierarchy_down_symbol)
s_log_message(_("Searching for symbol [%s]\n"),
object->complex_basename);
sym = s_clib_get_symbol_by_name (object->complex_basename);
+ if (sym == NULL)
+ return;
+ if (s_clib_symbol_get_filename(sym) == NULL) {
+ s_log_message(_("Symbol is not a real file."
+ " Symbol cannot be loaded.\n"));
+ return;
+ }
s_hierarchy_down_symbol(w_current->toplevel, sym,
w_current->toplevel->page_current);
/* s_hierarchy_down_symbol() will not zoom the loaded page */
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs