Fix getViewObject inheritance across all ViewProviders
This commit is contained in:
@@ -33,15 +33,11 @@
|
||||
/// Here the FreeCAD includes sorted by Base,App,Gui......
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Parameter.h>
|
||||
#include <Base/Exception.h>
|
||||
#include <Base/Sequencer.h>
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
#include <App/DocumentObject.h>
|
||||
#include <Gui/Selection.h>
|
||||
|
||||
#include <Mod/TechDraw/App/DrawViewClip.h>
|
||||
|
||||
#include "ViewProviderViewClip.h"
|
||||
|
||||
using namespace TechDrawGui;
|
||||
@@ -121,7 +117,12 @@ bool ViewProviderViewClip::isShow(void) const
|
||||
return Visibility.getValue();
|
||||
}
|
||||
|
||||
TechDraw::DrawViewClip* ViewProviderViewClip::getObject() const
|
||||
TechDraw::DrawViewClip* ViewProviderViewClip::getViewObject() const
|
||||
{
|
||||
return dynamic_cast<TechDraw::DrawViewClip*>(pcObject);
|
||||
}
|
||||
|
||||
TechDraw::DrawViewClip* ViewProviderViewClip::getObject() const
|
||||
{
|
||||
return getViewObject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user