Skip to content

Commit

Permalink
+ fixes #1482
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 24, 2015
1 parent ed46ec2 commit be38772
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Mod/Part/Gui/ViewProviderMirror.cpp
Expand Up @@ -174,19 +174,19 @@ void ViewProviderMirror::unsetEdit(int ModNum)

std::vector<App::DocumentObject*> ViewProviderMirror::claimChildren() const
{
// Request not to list mirrored object as child (#0001482)
// Make the input object a child (see also #0001482)
std::vector<App::DocumentObject*> temp;
//temp.push_back(static_cast<Part::Mirroring*>(getObject())->Source.getValue());
temp.push_back(static_cast<Part::Mirroring*>(getObject())->Source.getValue());
return temp;
}

bool ViewProviderMirror::onDelete(const std::vector<std::string> &)
{
// get the input shape
//Part::Mirroring* pMirroring = static_cast<Part::Mirroring*>(getObject());
//App::DocumentObject *pSource = pMirroring->Source.getValue();
//if (pSource)
// Gui::Application::Instance->showViewProvider(pSource);
Part::Mirroring* pMirroring = static_cast<Part::Mirroring*>(getObject());
App::DocumentObject *pSource = pMirroring->Source.getValue();
if (pSource)
Gui::Application::Instance->showViewProvider(pSource);

return true;
}
Expand Down

0 comments on commit be38772

Please sign in to comment.