From c2803739cf12e034e2993c62e04ec5133105170b Mon Sep 17 00:00:00 2001
From: bangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Sun, 13 Jul 2014 18:34:51 +0000
Subject: [PATCH] Make it compile.

git-svn-id: https://svn.dealii.org/branches/branch_manifold_id_intermediate@33151 0785d39b-7218-0410-832d-ea1e28bc413d
---
 .../deal.II/grid/tria_accessor.templates.h        | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/deal.II/include/deal.II/grid/tria_accessor.templates.h b/deal.II/include/deal.II/grid/tria_accessor.templates.h
index 1e6ff54a0b..c75d0f5c54 100644
--- a/deal.II/include/deal.II/grid/tria_accessor.templates.h
+++ b/deal.II/include/deal.II/grid/tria_accessor.templates.h
@@ -1930,14 +1930,13 @@ TriaAccessor<structdim, dim, spacedim>::get_manifold () const
 				   // the boundary id, after having
 				   // casted it to a manifold id
   if(mi == numbers::invalid_manifold_id) 
-    mi = static_cast<types::manifold_id>
-	 (structdim < dim ?
-	  this->objects().boundary_or_material_id[this->present_index].boundary_id:
-	  dim < spacedim ? 
-	  this->objects().boundary_or_material_id[this->present_index].material_id:
-	  numbers::invalid_manifold_id);
-  
-  return this->tria->get_manifold(mi);
+    return this->tria->get_manifold(structdim < dim ?
+				    this->objects().boundary_or_material_id[this->present_index].boundary_id:
+				    dim < spacedim ? 
+				    this->objects().boundary_or_material_id[this->present_index].material_id:
+				    numbers::invalid_manifold_id);
+  else
+    this->tria->get_manifold(mi);
 }
 
 
-- 
2.39.5