Fix for Bug #1909932, "gschem: page manager confused about hierarchy".

When looking for a sub sheet in s_hierarchy_down_schematic_single(),
the filename may not have been suitable for comparison to opened page
filenames. It then failed to identify a sub sheet as already opened
and opened it again. Adds normalization to filename prior to
comparison.
---
 libgeda/src/s_hierarchy.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libgeda/src/s_hierarchy.c b/libgeda/src/s_hierarchy.c
index 83b3baf..116b652 100644
--- a/libgeda/src/s_hierarchy.c
+++ b/libgeda/src/s_hierarchy.c
@@ -75,7 +75,9 @@ int s_hierarchy_down_schematic_single(TOPLEVEL *toplevel,
   switch (flag) {
     case HIERARCHY_NORMAL_LOAD:
     {
-      found = s_page_search (toplevel, string);
+      gchar *filename = f_normalize_filename (string);
+      found = s_page_search (toplevel, filename);
+      g_free (filename);
       
       if (found) {
        /* check whether this page is in the parents list */
-- 
1.5.6




_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to