View Issue Details

IDProjectCategoryView StatusLast Update
0000757FreeCADBugpublic2012-06-19 09:43
Reporterjrheinlaender Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionFixed in Version0.13 
Summary0000757: comparison of const char* using ==
DescriptionIn file Drawing/App/FeaturePage.cpp the line

if(Template.getValue() == "")

should read

if(Template.isEmpty())
TagsNo tags attached.
FreeCAD Information

Activities

jrheinlaender

2012-06-19 08:31

developer   ~0002219

Just saw that the same file also has

if (Template.getValue() != "")

which should probably read

if (std::string(Template.getValue()) != "")

wmayer

2012-06-19 09:43

administrator   ~0002220

This has already been fixed for a week. See http://free-cad.git.sourceforge.net/git/gitweb.cgi?p=free-cad/free-cad;a=blobdiff;f=src/Mod/Drawing/App/FeaturePage.cpp;h=0af2e7f4d47e9af629aae1b80951335b2cadfccf;hp=c1730ebc4a6c02d54769a63c7b465e8224aa829c;hb=104f9d522589b1f8e713b75d31c54e8b3193c21e;hpb=231786f5792ffa2ac32b38d00ca444b6f92fa92f

Issue History

Date Modified Username Field Change
2012-06-19 08:27 jrheinlaender New Issue
2012-06-19 08:31 jrheinlaender Note Added: 0002219
2012-06-19 09:43 wmayer Note Added: 0002220
2012-06-19 09:43 wmayer Status new => closed
2012-06-19 09:43 wmayer Resolution open => fixed
2012-06-19 09:43 wmayer Fixed in Version => 0.13