From 052b1f28b7c80b568d63c8bf1801aa7c439a29a4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 27 Feb 2012 12:38:06 -0600 Subject: [PATCH] Chain the current report to the current session --- src/global.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.cc b/src/global.cc index c0698376..34427f4b 100644 --- a/src/global.cc +++ b/src/global.cc @@ -68,7 +68,7 @@ global_scope_t::global_scope_t(char ** envp) // a GUI were calling into Ledger it would have one session object per // open document, with a separate report_t object for each report it // generated. - report_stack.push_front(new report_t(session())); + report_stack.push_front(new report_t(*session_ptr)); scope_t::default_scope = &report(); // Read the user's options, in the following order: