From: Wolfgang Bangerth Date: Wed, 17 Jul 2013 21:56:51 +0000 (+0000) Subject: Fix it the right way. X-Git-Tag: v8.0.0~93 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=984e69a4a2c79f4593da625b7c27f1d1aec5c0c8;p=dealii.git Fix it the right way. git-svn-id: https://svn.dealii.org/trunk@30029 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/grid/grid_out.cc b/deal.II/source/grid/grid_out.cc index bb3e039926..0713426ee3 100644 --- a/deal.II/source/grid/grid_out.cc +++ b/deal.II/source/grid/grid_out.cc @@ -1363,7 +1363,7 @@ void GridOut::write_svg(const Triangulation<2,2> &tria, std::ostream &out) const unsigned int n_levels = 0; unsigned int n_subdomains = 0; unsigned int n_level_subdomains = 0; - + unsigned int n = 0; unsigned int min_level, max_level; @@ -1458,7 +1458,7 @@ void GridOut::write_svg(const Triangulation<2,2> &tria, std::ostream &out) const if ((unsigned int)cell->level() < min_level) min_level = cell->level(); if ((unsigned int)cell->level() > max_level) max_level = cell->level(); - materials[(unsigned int)cell->material_id()] = 1; + materials[(unsigned int)cell->material_id()] = 1; levels[(unsigned int)cell->level()] = 1; if (cell->active()) subdomains[cell->subdomain_id()+2] = 1; @@ -1657,7 +1657,7 @@ void GridOut::write_svg(const Triangulation<2,2> &tria, std::ostream &out) const x_dimension_perspective = x_max_perspective - x_min_perspective; y_dimension_perspective = y_max_perspective - y_min_perspective; - cell_label_font_size = static_cast((.5 + (height/100.) * 2.75) * 9. * (min_level_min_vertex_distance / std::min(x_dimension, y_dimension))); + cell_label_font_size = static_cast((int)(.5 + (height/100.) * 2.75) * 9. * (min_level_min_vertex_distance / std::min(x_dimension, y_dimension))); // create the svg file with an internal style sheet