From 2535a909025f59de49ae32f272a14e59a65dacb9 Mon Sep 17 00:00:00 2001 From: hartmann Date: Mon, 11 Nov 2002 13:59:43 +0000 Subject: [PATCH] check the proper state of the ofstreams before using them for output. git-svn-id: https://svn.dealii.org/trunk@6746 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/table_handler.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deal.II/base/source/table_handler.cc b/deal.II/base/source/table_handler.cc index 934431d84f..066bcdff04 100644 --- a/deal.II/base/source/table_handler.cc +++ b/deal.II/base/source/table_handler.cc @@ -217,6 +217,8 @@ void TableHandler::set_scientific (const std::string &key, void TableHandler::write_text(std::ostream &out) const { + AssertThrow (out, ExcIO()); + std::vector sel_columns; get_selected_columns(sel_columns); @@ -331,6 +333,8 @@ void TableHandler::write_text(std::ostream &out) const void TableHandler::write_tex(std::ofstream &out) const { + AssertThrow (out, ExcIO()); + out << "\\documentclass[10pt]{report}" << std::endl << "\\usepackage{float}" << std::endl << std::endl << std::endl << "\\begin{document}" << std::endl -- 2.39.5