Skip to content

Commit

Permalink
Another minor error inspecting stops. Refs #457
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 20, 2024
1 parent ebcfdbb commit 174111c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/netedit/frames/GNEAttributesEditorRow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ GNEAttributesEditorRow::showAttributeRow(const GNEAttributeProperties& attrPrope
}
// show elements depending of attribute properties
if (attrProperty.isActivatable()) {
showAttributeToggleEnable(attrProperty, firstEditedAC->isAttributeEnabled(myAttribute), attributeEnabled);
showAttributeToggleEnable(attrProperty, firstEditedAC->isAttributeEnabled(myAttribute));
} else if (myAttribute == GNE_ATTR_PARENT) {
showAttributeReparent(attributeEnabled);
} else if ((myAttribute == SUMO_ATTR_TYPE) && tagProperty.hasTypeParent()) {
Expand Down Expand Up @@ -427,15 +427,10 @@ GNEAttributesEditorRow::getAttributeValue(const bool enabled) const {


void
GNEAttributesEditorRow::showAttributeToggleEnable(const GNEAttributeProperties& attrProperty, const bool value,
const bool enabled) {
GNEAttributesEditorRow::showAttributeToggleEnable(const GNEAttributeProperties& attrProperty, const bool value) {
myAttributeToggleEnableCheckButton->setText(attrProperty.getAttrStr().c_str());
myAttributeToggleEnableCheckButton->setCheck(value);
if (enabled) {
myAttributeToggleEnableCheckButton->enable();
} else {
myAttributeToggleEnableCheckButton->disable();
}
myAttributeToggleEnableCheckButton->enable();
myAttributeToggleEnableCheckButton->show();
// hide other elements
myAttributeLabel->hide();
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/frames/GNEAttributesEditorRow.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class GNEAttributesEditorRow : protected FXHorizontalFrame {
const std::string getAttributeValue(const bool enabled) const;

/// @brief show attribute toogle enable
void showAttributeToggleEnable(const GNEAttributeProperties& attrProperty, const bool value, const bool enabled);
void showAttributeToggleEnable(const GNEAttributeProperties& attrProperty, const bool value);

/// @brief show attribute reparent
void showAttributeReparent(const bool enabled);
Expand Down

0 comments on commit 174111c

Please sign in to comment.