Automatic visibility handling of axis cross

This commit is contained in:
wmayer
2019-06-16 13:05:39 +02:00
parent 6259e1eb3c
commit e730dd94e3
2 changed files with 12 additions and 1 deletions

View File

@@ -417,6 +417,10 @@ void StdCmdNew::activated(int iMsg)
.arg(qApp->translate("StdCmdNew","Unnamed"));
runCommand(Command::Doc,cmd.toUtf8());
doCommand(Command::Gui,"Gui.activeDocument().activeView().viewDefaultOrientation()");
ParameterGrp::handle hViewGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
if (hViewGrp->GetBool("ShowAxisCross"))
doCommand(Command::Gui,"Gui.ActiveDocument.ActiveView.setAxisCross(True)");
}
//===========================================================================