From 11ab70aedc2ad37f2ce086abb96daa5a31dee71c Mon Sep 17 00:00:00 2001 From: heister Date: Mon, 5 Nov 2012 23:53:42 +0000 Subject: [PATCH] fix bug in new xfig output git-svn-id: https://svn.dealii.org/trunk@27416 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/grid_out.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.II/source/grid/grid_out.cc b/deal.II/source/grid/grid_out.cc index f7a0fbfd86..7764bc00bc 100644 --- a/deal.II/source/grid/grid_out.cc +++ b/deal.II/source/grid/grid_out.cc @@ -301,6 +301,7 @@ namespace GridOutFlags XFig::XFig () : draw_boundary(true), + color_by(material_id), level_color(false), level_depth(true), n_boundary_face_points(0), @@ -1171,7 +1172,7 @@ void GridOut::write_xfig ( if (xfig_flags.level_color) out << cell->level() + 32; else - out << cell->material_id() + 32; + out << static_cast(cell->material_id()) + 32; break; case GridOutFlags::XFig::level_number: out << cell->level() + 8; -- 2.39.5