From fad6492d816b289bf80de6aca01060beed100c5b Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 20 Dec 2008 17:29:35 +0000 Subject: [PATCH] *** empty log message *** --- Fltk/optionWindow.cpp | 2 +- Post/PViewDataGModel.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Fltk/optionWindow.cpp b/Fltk/optionWindow.cpp index e3c2debdb1..c003704dc8 100644 --- a/Fltk/optionWindow.cpp +++ b/Fltk/optionWindow.cpp @@ -40,7 +40,7 @@ class engineeringValueInput : public Fl_Value_Input public: engineeringValueInput(int x, int y, int w, int h, const char *l=0) : Fl_Value_Input(x, y, w, h, l) {} - virtual int format(char *buffer){ return snprintf(buffer, 128, "%g", value()); } + virtual int format(char *buffer){ return sprintf(buffer, "%g", value()); } }; static Fl_Menu_Item menu_point_display[] = { diff --git a/Post/PViewDataGModel.cpp b/Post/PViewDataGModel.cpp index e653811e66..18d7a02f84 100644 --- a/Post/PViewDataGModel.cpp +++ b/Post/PViewDataGModel.cpp @@ -374,10 +374,10 @@ void PViewDataGModel::getValue(int step, int ent, int ele, int nod, int comp, do val = _steps[step]->getData(e->getVertex(nod)->getNum())[comp]; break; case ElementNodeData: - case GaussPointData: + case GaussPointData: val = _steps[step]->getData(e->getNum())[_steps[step]->getNumComponents() * nod + comp]; break; - case ElementData: + case ElementData: default: val = _steps[step]->getData(e->getNum())[comp]; break; -- GitLab