[TD]prevent touched but must be execute on DrawPage
This commit is contained in:
committed by
WandererFan
parent
5ade10d049
commit
74dc5344d4
@@ -162,7 +162,7 @@ void DrawPage::onChanged(const App::Property* prop)
|
||||
//Page is just a container. It doesn't "do" anything.
|
||||
App::DocumentObjectExecReturn *DrawPage::execute(void)
|
||||
{
|
||||
return App::DocumentObject::StdReturn;
|
||||
return App::DocumentObject::execute();
|
||||
}
|
||||
|
||||
// this is now irrelevant, b/c DP::execute doesn't do anything.
|
||||
|
||||
@@ -141,6 +141,7 @@ void CmdTechDrawPageDefault::activated(int iMsg)
|
||||
doCommand(Doc,"App.activeDocument().%s.Template = '%s'",TemplateName.c_str(), templateFileName.toStdString().c_str());
|
||||
doCommand(Doc,"App.activeDocument().%s.Template = App.activeDocument().%s",PageName.c_str(),TemplateName.c_str());
|
||||
|
||||
updateActive();
|
||||
commitCommand();
|
||||
TechDraw::DrawPage* fp = dynamic_cast<TechDraw::DrawPage*>(getDocument()->getObject(PageName.c_str()));
|
||||
if (!fp) {
|
||||
@@ -220,6 +221,7 @@ void CmdTechDrawPageTemplate::activated(int iMsg)
|
||||
doCommand(Doc,"App.activeDocument().%s.Template = App.activeDocument().%s",PageName.c_str(),TemplateName.c_str());
|
||||
// consider renaming DrawSVGTemplate.Template property?
|
||||
|
||||
updateActive();
|
||||
commitCommand();
|
||||
TechDraw::DrawPage* fp = dynamic_cast<TechDraw::DrawPage*>(getDocument()->getObject(PageName.c_str()));
|
||||
if (!fp) {
|
||||
|
||||
Reference in New Issue
Block a user