fix errors from merge of master

This commit is contained in:
jriegel 2014-12-22 16:30:58 +01:00 committed by Stefan Tröger
parent ade02b5643
commit 1e01f8c223
3 changed files with 11 additions and 6 deletions

View File

@ -157,6 +157,9 @@ Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::Perform()
// static methods
#pragma warning(push)
#pragma warning(disable : 4805)
static Standard_Real readFloat(OSD_File& theFile)
{
union {
@ -176,6 +179,7 @@ static Standard_Real readFloat(OSD_File& theFile)
return u.f;
}
#pragma warning(pop)
static SMDS_MeshNode* addNode(const gp_Pnt& P,
DriverSTL_DataMapOfPntNodePtr& uniqnodes,

View File

@ -42,7 +42,7 @@
<widget class="QListWidget" name="listWidgetReferences"/>
</item>
<item>
<widget class="Gui::QuantitySpinBox" name="chamferDistance"/>
<widget class="Gui::QuantitySpinBox" name="chamferDistance"/>
</item>
<item>
<widget class="QLabel" name="label">

View File

@ -107,6 +107,7 @@ PartDesign::Body *Workbench::setUpPart(const App::Part *part)
void Workbench::_doMigration(const App::Document* doc)
{
bool groupCreated = false;
if(doc->countObjects() != 0) {
// show a warning about the convertion
@ -165,7 +166,7 @@ void Workbench::_doMigration(const App::Document* doc)
// Always create at least the first body, even if the document is empty
// This adds both the base planes and the body
Gui::Command::runCommand(Gui::Command::Doc, "FreeCADGui.runCommand('PartDesign_Body')");
activeBody = PartDesignGui::ActivePartObject;
PartDesign::Body *activeBody = PartDesignGui::ActivePartObject;
// Create one Body for every root and put the appropriate features into it
@ -391,17 +392,17 @@ void Workbench::_switchToDocument(const App::Document* doc)
void Workbench::slotActiveDocument(const Gui::Document& Doc)
{
switchToDocument(Doc.getDocument());
_switchToDocument(Doc.getDocument());
}
void Workbench::slotNewDocument(const App::Document& Doc)
{
switchToDocument(&Doc);
_switchToDocument(&Doc);
}
void Workbench::slotFinishRestoreDocument(const App::Document& Doc)
{
switchToDocument(&Doc);
_switchToDocument(&Doc);
}
void Workbench::slotDeleteDocument(const App::Document&)
@ -616,7 +617,7 @@ void Workbench::activated()
// make the previously used active Body active again
PartDesignGui::ActivePartObject = NULL;
switchToDocument(App::GetApplication().getActiveDocument());
_switchToDocument(App::GetApplication().getActiveDocument());
addTaskWatcher(Watcher);
Gui::Control().showTaskView();