From 204d6485423184012bec73ba2895192ed7ab7c15 Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@math.tamu.edu>
Date: Tue, 13 Mar 2001 14:21:46 +0000
Subject: [PATCH] Fix non-compilability.

git-svn-id: https://svn.dealii.org/trunk@4196 0785d39b-7218-0410-832d-ea1e28bc413d
---
 deal.II/deal.II/source/fe/mapping_q.cc | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/deal.II/deal.II/source/fe/mapping_q.cc b/deal.II/deal.II/source/fe/mapping_q.cc
index 136e07ddcc..960fba2980 100644
--- a/deal.II/deal.II/source/fe/mapping_q.cc
+++ b/deal.II/deal.II/source/fe/mapping_q.cc
@@ -806,7 +806,7 @@ MappingQ<dim>::compute_support_points_laplace(const typename Triangulation<dim>:
               apply_laplace_vector (laplace_on_hex_vector, a);
 	      break;
 	      
-	default 1:
+	default:
 	      Assert(false, ExcNotImplemented());
 	      break;
       };
@@ -924,7 +924,15 @@ MappingQ<dim>::add_line_support_points (const Triangulation<dim>::cell_iterator
   if (degree==2)
     {
       for (unsigned int line_no=0; line_no<GeometryInfo<dim>::lines_per_cell; ++line_no)
-	a.push_back(boundary->get_new_point_on_line(line));
+	{
+	  const typename Triangulation<dim>::line_iterator line = cell->line(line_no);
+	  const Boundary<dim> * const boundary
+	    = (line->at_boundary() ?
+	       &line->get_triangulation().get_boundary(line->boundary_indicator()) :
+	       &straight_boundary);
+	  
+	  a.push_back(boundary->get_new_point_on_line(line));
+	};
     }
   else
 				     // otherwise call the more
-- 
2.39.5