LabelMgr.cpp   LabelMgr.cpp 
skipping to change at line 495 skipping to change at line 495
} }
void LabelMgr::setLabelText(int id, const QString& newText) void LabelMgr::setLabelText(int id, const QString& newText)
{ {
if (allLabels.at(id)!=NULL) if (allLabels.at(id)!=NULL)
allLabels.at(id)->setText(newText); allLabels.at(id)->setText(newText);
} }
bool LabelMgr::deleteLabel(int id) bool LabelMgr::deleteLabel(int id)
{ {
if (allLabels.at(id)!=NULL) if (id<0)
return false;
if (allLabels.at(id)!=NULL)
{ {
delete allLabels.at(id); delete allLabels.at(id);
allLabels[id] = NULL; allLabels[id] = NULL;
return true; return true;
} }
else else
return false; return false;
} }
void LabelMgr::update(double deltaTime) void LabelMgr::update(double deltaTime)
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/