Skip to content

Commit 6291a0f

Browse files
committed
GUI: fixed Ctrl+Shift+Up/Down for variables.
1 parent 98c7cf7 commit 6291a0f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# main
22
- New option: GnssAntennaNormalsConstraint: gnssType selection for TEC constraint.
3+
- Bugfix: GUI: fixed Ctrl+Shift+Up/Down for variables.
34
- Bugfix: slrParametrizationRangeBiasStationSatellite: Fix station index.
45
- Bugfix: parameterNames: fixed wrong order.
56
- Bugfix: GraceAod2DoodsonHarmonics: fixed phase error.

gui/tree/treeElementComplex.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,8 @@ void TreeElementComplex::UndoCommandMoveChild::redo()
677677
{
678678
// find precursor item
679679
TreeItem *after = nullptr;
680+
if(parent->loop && parent->loop->item()) after = parent->loop->item();
681+
if(parent->condition && parent->condition->item()) after = parent->condition->item();
680682
for(int i=0; i<children.size(); i++)
681683
{
682684
if(children[i] == treeElement)
@@ -703,6 +705,8 @@ bool TreeElementComplex::canMoveChild(TreeElement *targetElement, TreeElement *e
703705
return false;
704706
if(dynamic_cast<TreeElementComment*>(element))
705707
return true;
708+
if(!element->label().isEmpty())
709+
return true;
706710
return element->elementAdd() && (element->elementAdd() == skipCommentElements(targetElement)->elementAdd());
707711
}
708712

0 commit comments

Comments
 (0)