PVS: V519 A variable is assigned values twice successively.
This commit is contained in:
@@ -246,8 +246,10 @@ void GLImageBox::getDisplayedImageAreaSize(int &dx, int &dy)
|
||||
dx = 0;
|
||||
dy = 0;
|
||||
}
|
||||
dx = ibrx - itlx + 1;
|
||||
dy = ibry - itly + 1;
|
||||
else {
|
||||
dx = ibrx - itlx + 1;
|
||||
dy = ibry - itly + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -316,9 +316,10 @@ private:
|
||||
if(keepPlacement!=Py_None)
|
||||
ocaf.setKeepPlacement(PyObject_IsTrue(keepPlacement));
|
||||
ocaf.exportObjects(objs);
|
||||
}else{
|
||||
bool keepExplicitPlacement = objs.size() > 1;
|
||||
keepExplicitPlacement = Standard_True;
|
||||
}
|
||||
else {
|
||||
//bool keepExplicitPlacement = objs.size() > 1;
|
||||
bool keepExplicitPlacement = Standard_True;
|
||||
ExportOCAF ocaf(hDoc, keepExplicitPlacement);
|
||||
// That stuff is exporting a list of selected objects into FreeCAD Tree
|
||||
std::vector <TDF_Label> hierarchical_label;
|
||||
|
||||
@@ -597,9 +597,10 @@ private:
|
||||
if(keepPlacement!=Py_None)
|
||||
ocaf.setKeepPlacement(PyObject_IsTrue(keepPlacement));
|
||||
ocaf.exportObjects(objs);
|
||||
} else {
|
||||
bool keepExplicitPlacement = objs.size() > 1;
|
||||
keepExplicitPlacement = Standard_True;
|
||||
}
|
||||
else {
|
||||
//bool keepExplicitPlacement = objs.size() > 1;
|
||||
bool keepExplicitPlacement = Standard_True;
|
||||
ExportOCAFGui ocaf(hDoc, keepExplicitPlacement);
|
||||
// That stuff is exporting a list of selected objects into FreeCAD Tree
|
||||
std::vector <TDF_Label> hierarchical_label;
|
||||
|
||||
Reference in New Issue
Block a user