Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 1330)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 1331)
@@ -19,4 +19,7 @@
      - added missing copyright notices
      - added missing class description
+
+   * mbase/MWriteRootFile.cc, mbase/MWriteAsciiFile.cc:
+     - added AddToBranch call to AddContainer(const char*, const char*)
 
 
Index: /trunk/MagicSoft/Mars/mbase/MWriteAsciiFile.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MWriteAsciiFile.cc	(revision 1330)
+++ /trunk/MagicSoft/Mars/mbase/MWriteAsciiFile.cc	(revision 1331)
@@ -235,4 +235,7 @@
     MScale *name = new MScale(cname, member, scale);
     fContNames.AddLast(name);
+
+    if (member && member[0])
+        AddToBranchList(Form("%s.%s", cname, member));
 }
 
Index: /trunk/MagicSoft/Mars/mbase/MWriteRootFile.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MWriteRootFile.cc	(revision 1330)
+++ /trunk/MagicSoft/Mars/mbase/MWriteRootFile.cc	(revision 1331)
@@ -151,4 +151,7 @@
     MRootFileBranch *entry = new MRootFileBranch(cname, tname, ttitle);
     fBranches.AddLast(entry);
+
+    if (tname && tname[0])
+        AddToBranchList(Form("%s.%s", cname, tname));
 }
 
