From 7f9f3e4c52e6bedd7e5728b81937c1ce04924944 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Mon, 15 Apr 2013 15:18:01 +0000 Subject: [PATCH] enums are still no classes git-svn-id: https://svn.dealii.org/trunk@29287 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/grid_out.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deal.II/source/grid/grid_out.cc b/deal.II/source/grid/grid_out.cc index b5098e9f85..65f39e9315 100644 --- a/deal.II/source/grid/grid_out.cc +++ b/deal.II/source/grid/grid_out.cc @@ -1377,7 +1377,8 @@ void GridOut::write_svg(const Triangulation<2,2> &tria, std::ostream &out) const unsigned int width; unsigned int margin_in_percent = 0; - if (svg_flags.margin || svg_flags.background == GridOutFlags::Svg::dealii) margin_in_percent = 8.5; + if (svg_flags.margin || svg_flags.background == GridOutFlags::Svg::dealii) + margin_in_percent = 8; // initial font size for cell labels unsigned int cell_label_font_size; @@ -1503,13 +1504,13 @@ void GridOut::write_svg(const Triangulation<2,2> &tria, std::ostream &out) const switch (svg_flags.coloring) { - case GridOutFlags::Svg::Coloring::material_id: + case GridOutFlags::Svg::material_id: n = n_materials; break; - case GridOutFlags::Svg::Coloring::level_number: + case GridOutFlags::Svg::level_number: n = n_levels; break; - case GridOutFlags::Svg::Coloring::subdomain_id: + case GridOutFlags::Svg::subdomain_id: n = n_subdomains; break; // case GridOutFlags::Svg::Coloring::level_subdomain_id: n = n_level_subdomains; -- 2.39.5