TD: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 13:26:01 -05:00
parent cb21ac7bf8
commit c44ccc0ff2
10 changed files with 34 additions and 17 deletions

View File

@@ -230,7 +230,8 @@ bool TaskLineDecor::accept()
{
// Base::Console().Message("TLD::accept()\n");
Gui::Document* doc = Gui::Application::Instance->getDocument(m_partFeat->getDocument());
if (!doc) return false;
if (!doc)
return false;
if (apply()) {
applyDecorations();
@@ -248,7 +249,8 @@ bool TaskLineDecor::reject()
{
// Base::Console().Message("TLD::reject()\n");
Gui::Document* doc = Gui::Application::Instance->getDocument(m_partFeat->getDocument());
if (!doc) return false;
if (!doc)
return false;
Gui::Command::doCommand(Gui::Command::Gui,"Gui.ActiveDocument.resetEdit()");
return false;