[TD]remove redundant edits from 9 Task dialogs

This commit is contained in:
Wanderer Fan
2022-01-15 14:01:45 -05:00
committed by WandererFan
parent c3b46bad38
commit cb280afbc4
9 changed files with 22 additions and 92 deletions

View File

@@ -96,12 +96,10 @@ TaskDetail::TaskDetail(TechDraw::DrawViewPart* baseFeat):
m_mode(CREATEMODE),
m_created(false)
{
if (m_baseFeat == nullptr) {
//should be caught in CMD caller
Base::Console().Error("TaskDetail - bad parameters - base feature. Can not proceed.\n");
return;
}
//existence of baseFeat checked in CmdTechDrawDetailView (Command.cpp)
m_basePage = m_baseFeat->findParentPage();
//it is possible that the basePage could be unparented and have no corresponding Page
if (m_basePage == nullptr) {
Base::Console().Error("TaskDetail - bad parameters - base page. Can not proceed.\n");
return;