]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp
comparison with string literal results in unspecified behaviour
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualContourModel.cpp
index 72999cfda745fb9fc6dc06e6981b90903bdc4ce8..0d8d177413b877a6aca37e03af8e396d0f9680c2 100644 (file)
@@ -669,7 +669,8 @@ void manualContourModel::OpenData(FILE *ff)
        fscanf(ff,"%s",tmp); // Label:
        fscanf(ff,"%s",tmp); // value
        std::cout<<tmp<<std::endl;
-       if(tmp != "NO_LABEL")
+       //if(strcmp(tmp != "NO_LABEL") // JPR
+       if(strcmp(tmp,"NO_LABEL" != 0)
                SetLabel(tmp);
 
        fscanf(ff,"%s",tmp); // Real_size