From 223651bff47736136f6020a5dac0251f54418f2f Mon Sep 17 00:00:00 2001 From: enk Date: Thu, 12 Apr 2007 05:55:05 +0000 Subject: [PATCH] Fix for Bug NPAL14169 and 15200. --- src/VISU_I/VISU_PrsMerger_i.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_PrsMerger_i.cc b/src/VISU_I/VISU_PrsMerger_i.cc index 165afce1..c021c9d3 100644 --- a/src/VISU_I/VISU_PrsMerger_i.cc +++ b/src/VISU_I/VISU_PrsMerger_i.cc @@ -543,11 +543,15 @@ VISU::PrsMerger_i if(!anIDMapper) return false; bool aAllPoints = true; - if(anIDMapper->GetVTKOutput()->GetNumberOfCells()>0){ + int aNbCellsInGeom = anIDMapper->GetVTKOutput()->GetNumberOfCells(); + if(aNbCellsInGeom>0){ int aVtkCellType = anIDMapper->GetVTKOutput()->GetCellType(0); if (MYDEBUG) MESSAGE("CellType="<