Ignore:
Timestamp:
Mar 6, 2012 12:58:23 PM (9 years ago)
Author:
ldelgass
Message:

Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/ParticleSystemFactory.cpp

    r2805 r2814  
    114114            pointSize = (float) atof(attrs[i + 1]);
    115115        } else if (!strcmp(attrs[i], "vector-field-x")) {
    116             fieldWidth = (float) atof(attrs[i + 1]);
     116            fieldWidth = atoi(attrs[i + 1]);
    117117        } else if (!strcmp(attrs[i], "vector-field-y")) {
    118             fieldHeight = (float) atof(attrs[i + 1]);
     118            fieldHeight = atoi(attrs[i + 1]);
    119119        } else if (!strcmp(attrs[i], "vector-field-z")) {
    120             fieldDepth = (float) atof(attrs[i + 1]);
     120            fieldDepth = atoi(attrs[i + 1]);
    121121        } else if (!strcmp(attrs[i], "sort-enabled")) {
    122122            if (!strcmp(attrs[i + 1], "true"))
Note: See TracChangeset for help on using the changeset viewer.