]> https://gitweb.dealii.org/ - dealii.git/commitdiff
enums are still no classes
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 15 Apr 2013 15:18:01 +0000 (15:18 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 15 Apr 2013 15:18:01 +0000 (15:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@29287 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_out.cc

index b5098e9f853e1535a92601986e712a195191599b..65f39e9315e28412ac7bb40ad003a15f9455f260 100644 (file)
@@ -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;

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.