Ignore:
Timestamp:
Oct 14, 2011 9:10:24 AM (13 years ago)
Author:
ldelgass
Message:

Fix crash on setting constant color mode

Location:
trunk/packages/vizservers/vtkvis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/RpCutplane.cpp

    r2612 r2625  
    88#include <cassert>
    99#include <cfloat>
     10#include <cstring>
    1011
    1112#include <vtkDataSet.h>
  • trunk/packages/vizservers/vtkvis/RpPseudoColor.cpp

    r2612 r2625  
    88#include <cassert>
    99#include <cfloat>
     10#include <cstring>
    1011
    1112#include <vtkDataSet.h>
     
    292293    _colorMode = mode;
    293294    _colorFieldType = type;
    294     _colorFieldName = name;
     295    if (name == NULL)
     296        _colorFieldName.clear();
     297    else
     298        _colorFieldName = name;
    295299    if (range == NULL) {
    296300        _colorFieldRange[0] = DBL_MAX;
  • trunk/packages/vizservers/vtkvis/RpStreamlines.cpp

    r2612 r2625  
    1010#include <cfloat>
    1111#include <cmath>
     12#include <cstring>
    1213
    1314#include <vtkMath.h>
     
    13381339    _colorMode = mode;
    13391340    _colorFieldType = type;
    1340     _colorFieldName = name;
     1341    if (name == NULL)
     1342        _colorFieldName.clear();
     1343    else
     1344        _colorFieldName = name;
    13411345    if (range == NULL) {
    13421346        _colorFieldRange[0] = DBL_MAX;
Note: See TracChangeset for help on using the changeset viewer.