Skip to content

Commit

Permalink
Fixed errors in drawGL() functions of GNEBusStop and GNEChargingStati…
Browse files Browse the repository at this point in the history
…on. Refs #13894
  • Loading branch information
palvarezlopez committed Dec 19, 2023
1 parent eab2550 commit 628b285
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/netedit/elements/additional/GNEBusStop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ GNEBusStop::drawGL(const GUIVisualizationSettings& s) const {
GLHelper::popName();
// draw lock icon
GNEViewNetHelper::LockIcon::drawLockIcon(this, getType(), myAdditionalGeometry.getShape().getCentroid(), busStopExaggeration, (myTagProperty.getTag() == SUMO_TAG_BUS_STOP) ? 0.5 : 0.25);
// draw stoppingPlace children
drawStoppingPlaceChildren(s);
// Draw additional ID
drawAdditionalID(s);
// draw additional name
drawAdditionalName(s);
}
// draw stoppingPlace children
drawStoppingPlaceChildren(s);
// draw dotted geometry (don't exaggerate contour)
myContour.drawDottedContourExtruded(s, myAdditionalGeometry.getShape(), stopWidth, 1, true, true,
s.dottedContourSettings.segmentWidth);
Expand Down
8 changes: 4 additions & 4 deletions src/netedit/elements/additional/GNEChargingStation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ GNEChargingStation::drawGL(const GUIVisualizationSettings& s) const {
GLHelper::popName();
// draw lock icon
GNEViewNetHelper::LockIcon::drawLockIcon(this, getType(), myAdditionalGeometry.getShape().getCentroid(), chargingStationExaggeration);
// Draw additional ID
drawAdditionalID(s);
// draw additional name
drawAdditionalName(s);
}
// draw stoppingPlace children
drawStoppingPlaceChildren(s);
// Draw additional ID
drawAdditionalID(s);
// draw additional name
drawAdditionalName(s);
// draw dotted geometry (don't exaggerate contour)
myContour.drawDottedContourExtruded(s, myAdditionalGeometry.getShape(), s.stoppingPlaceSettings.chargingStationWidth, 1, true, true,
s.dottedContourSettings.segmentWidth);
Expand Down

0 comments on commit 628b285

Please sign in to comment.