[TD]code review changes for dgh, dpg, dpgi, dra
This commit is contained in:
committed by
WandererFan
parent
90450e8a4a
commit
4cefaa3a13
@@ -94,7 +94,7 @@ App::DocumentObjectExecReturn *DrawRichAnno::execute()
|
||||
// Base::Console().Message("DRA::execute() - @ (%.3f, %.3f)\n", X.getValue(), Y.getValue());
|
||||
if (!keepUpdated()) {
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
}
|
||||
overrideKeepUpdated(false);
|
||||
return DrawView::execute();
|
||||
}
|
||||
@@ -111,15 +111,16 @@ DrawView* DrawRichAnno::getBaseView() const
|
||||
DrawPage* DrawRichAnno::findParentPage() const
|
||||
{
|
||||
// Base::Console().Message("DRA::findParentPage()\n");
|
||||
DrawPage *page = nullptr;
|
||||
if (AnnoParent.getValue() != nullptr) {
|
||||
DrawView* parent = dynamic_cast<DrawView*>(AnnoParent.getValue());
|
||||
page = parent->findParentPage();
|
||||
} else {
|
||||
page = DrawView::findParentPage();
|
||||
if (!AnnoParent.getValue()) {
|
||||
return DrawView::findParentPage();
|
||||
}
|
||||
|
||||
return page;
|
||||
DrawView* parent = dynamic_cast<DrawView*>(AnnoParent.getValue());
|
||||
if (parent) {
|
||||
return parent->findParentPage();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PyObject *DrawRichAnno::getPyObject()
|
||||
|
||||
Reference in New Issue
Block a user