[TD]Correct section view alignment

This commit is contained in:
wandererfan
2019-09-23 14:39:22 -04:00
committed by WandererFan
parent 58cf8587e2
commit d9fa2b3263
3 changed files with 113 additions and 16 deletions

View File

@@ -124,20 +124,17 @@ bool TaskSectionView::calcValues()
if (ui->pb_Up->isChecked()) {
sectionDir = "Up";
sectionProjDir = m_section->getSectionVector(sectionDir);
} else if (ui->pb_Down->isChecked()) {
sectionDir = "Down";
sectionProjDir = m_section->getSectionVector(sectionDir);
} else if (ui->pb_Left->isChecked()) {
sectionDir = "Left";
sectionProjDir = m_section->getSectionVector(sectionDir);
} else if (ui->pb_Right->isChecked()) {
sectionDir = "Right";
sectionProjDir = m_section->getSectionVector(sectionDir);
} else {
Base::Console().Message("Select a direction\n");
result = false;
}
sectionProjDir = m_section->getSectionVector(sectionDir);
sectionNormal = sectionProjDir;
if (result) {