]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix bug in new xfig output
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Nov 2012 23:53:42 +0000 (23:53 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Nov 2012 23:53:42 +0000 (23:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@27416 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_out.cc

index f7a0fbfd869f769a2f006124ce2eacf636ccdad8..7764bc00bc8c18a222f109cf5bd01221d248806f 100644 (file)
@@ -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<unsigned int>(cell->material_id()) + 32;
                break;
        case GridOutFlags::XFig::level_number:
                out << cell->level() + 8;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.