Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Feb 20, 2025
1 parent 427ab3b commit 1e50918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/instrumentsscene/view/layoutpaneltreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ void LayoutPanelTreeModel::updateMovingDownAvailability(bool isSelectionMovable,
bool hasControlItem = parentItem->type() != LayoutPanelItemType::ROOT;
const AbstractLayoutPanelTreeItem* curItem = modelIndexToItem(lastSelectedRowIndex);
bool lastSelectedIsSystemObjectLayer = curItem && curItem->type() == LayoutPanelItemType::ItemType::SYSTEM_OBJECTS_LAYER;
int lastItemRowIndex = parentItem->childCount() - 1 - (hasControlItem ? 1 : 0) - (lastSelectedIsSystemObjectLayer? 1 : 0);
int lastItemRowIndex = parentItem->childCount() - 1 - (hasControlItem ? 1 : 0) - (lastSelectedIsSystemObjectLayer ? 1 : 0);

bool isRowInBoundaries = lastSelectedRowIndex.isValid() && lastSelectedRowIndex.row() < lastItemRowIndex;

Expand Down

0 comments on commit 1e50918

Please sign in to comment.