From 97ff0145cb7111a9113dfef483e851bab808dfa8 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 20 Nov 2008 19:11:46 +0000
Subject: [PATCH] fix for vtk

---
 Geo/MElement.cpp | 3 +--
 doc/VERSIONS.txt | 7 ++++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Geo/MElement.cpp b/Geo/MElement.cpp
index 7fe335040a..d37ff5779f 100644
--- a/Geo/MElement.cpp
+++ b/Geo/MElement.cpp
@@ -521,8 +521,7 @@ void MElement::writeVRML(FILE *fp)
 
 void MElement::writeVTK(FILE *fp, bool binary, bool bigEndian)
 {
-  int type = getTypeForUNV();
-  if(!type) return;
+  if(!getTypeForVTK()) return;
 
   setVolumePositive();
 
diff --git a/doc/VERSIONS.txt b/doc/VERSIONS.txt
index 3073dbc2de..4ba5f0f9d6 100644
--- a/doc/VERSIONS.txt
+++ b/doc/VERSIONS.txt
@@ -1,8 +1,9 @@
-$Id: VERSIONS.txt,v 1.16 2008-11-19 21:24:09 geuzaine Exp $
+$Id: VERSIONS.txt,v 1.17 2008-11-20 19:11:46 geuzaine Exp $
 
 2.2.6 (?): better transfinite smoothing and automatic corner
-selection; fixed high order meshing bug on Windows/Linux; fixed
-various other small bugs.
+selection; fixed high order meshing crashes on Windows and Linux; new
+uniform mesh refinement (thanks Brian!); fixed various other small
+bugs.
 
 2.2.5 (Oct 25, 2008): Gmsh now requires FLTK 1.1.7 or above; various
 small improvements (STL and VTK mesh IO, Netgen upgrade, Visual C++
-- 
GitLab