/[lmi]/lmi/ledger_xsl.cpp
ViewVC logotype

Diff of /lmi/ledger_xsl.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by chicares, Sun Jul 10 04:16:16 2005 UTC revision 1.8 by chicares, Thu Oct 13 13:55:29 2005 UTC
# Line 99  std::string write_ledger_to_pdf Line 99  std::string write_ledger_to_pdf
99      fs::path xml_out_file = unique_filepath(fo_dir / real_filename, ".xml");      fs::path xml_out_file = unique_filepath(fo_dir / real_filename, ".xml");
100    
101      fs::ofstream ofs(xml_out_file, std::ios_base::out | std::ios_base::trunc);      fs::ofstream ofs(xml_out_file, std::ios_base::out | std::ios_base::trunc);
102      ledger.write(ofs);      // Scale a copy of the 'ledger' argument. The original must not be
103        // modified because scaling is not reentrant.
104        Ledger scaled_ledger(ledger);
105        scaled_ledger.AutoScale();
106        scaled_ledger.write(ofs);
107      ofs.close();      ofs.close();
108    
109      fs::path xsl_file = xsl_filepath(ledger);      fs::path xsl_file = xsl_filepath(ledger);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26