Skip to content

Commit

Permalink
Updated GNEAttributeTable. Refs #15776
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Nov 26, 2024
1 parent f93c1b3 commit 5ed1ab4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/netedit/frames/GNEAttributeTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ void
GNEAttributeTable::showAttributeTableModule(const std::vector<GNEAttributeCarrier*> &ACs, bool includeExtended) {
myEditedACs = ACs;
if (ACs.size() > 0) {
// get tag property of first edited AC
const auto tagProperty = ACs.front()->getTagProperty();
// Iterate over ACs and show row for every AC
for (int i = (int)myEditedACs.size(); i < MAX_ATTR; i++) {
myAttributeRows[i]->showAttributeRow(myEditedACs[i]);
for (int i = 0; i < tagProperty.getNumberOfAttributes(); i++) {
myAttributeRows[i]->showAttributeRow(tagProperty.getAttributeProperties(i), includeExtended);
}
// hide rest of rows before showing table
for (int i = (int)myEditedACs.size(); i < MAX_ATTR; i++) {
for (int i = tagProperty.getNumberOfAttributes(); i < MAX_ATTR; i++) {
myAttributeRows[i]->hideAttributeRow();
}
show();
Expand Down

0 comments on commit 5ed1ab4

Please sign in to comment.