Skip to content

Commit

Permalink
GUI: fixed Ctrl+Shift+Up/Down for variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmayerguerr committed Oct 11, 2024
1 parent 98c7cf7 commit 6291a0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# main
- New option: GnssAntennaNormalsConstraint: gnssType selection for TEC constraint.
- Bugfix: GUI: fixed Ctrl+Shift+Up/Down for variables.
- Bugfix: slrParametrizationRangeBiasStationSatellite: Fix station index.
- Bugfix: parameterNames: fixed wrong order.
- Bugfix: GraceAod2DoodsonHarmonics: fixed phase error.
Expand Down
4 changes: 4 additions & 0 deletions gui/tree/treeElementComplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,8 @@ void TreeElementComplex::UndoCommandMoveChild::redo()
{
// find precursor item
TreeItem *after = nullptr;
if(parent->loop && parent->loop->item()) after = parent->loop->item();
if(parent->condition && parent->condition->item()) after = parent->condition->item();
for(int i=0; i<children.size(); i++)
{
if(children[i] == treeElement)
Expand All @@ -703,6 +705,8 @@ bool TreeElementComplex::canMoveChild(TreeElement *targetElement, TreeElement *e
return false;
if(dynamic_cast<TreeElementComment*>(element))
return true;
if(!element->label().isEmpty())
return true;
return element->elementAdd() && (element->elementAdd() == skipCommentElements(targetElement)->elementAdd());
}

Expand Down

0 comments on commit 6291a0f

Please sign in to comment.