about summary refs log tree commit diff stats
path: root/src/subway_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/subway_map.cpp')
-rw-r--r--src/subway_map.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/subway_map.cpp b/src/subway_map.cpp index d331b7d..99638aa 100644 --- a/src/subway_map.cpp +++ b/src/subway_map.cpp
@@ -112,9 +112,8 @@ void SubwayMap::OnPaint(wxPaintEvent &event) {
112 if (hovered_item_ && networks_.IsItemInNetwork(*hovered_item_)) { 112 if (hovered_item_ && networks_.IsItemInNetwork(*hovered_item_)) {
113 dc.SetBrush(*wxTRANSPARENT_BRUSH); 113 dc.SetBrush(*wxTRANSPARENT_BRUSH);
114 114
115 int network_id = networks_.GetNetworkWithItem(*hovered_item_);
116 for (const auto &[item_id1, item_id2] : 115 for (const auto &[item_id1, item_id2] :
117 networks_.GetNetworkGraph(network_id)) { 116 networks_.GetNetworkGraph(*hovered_item_)) {
118 const SubwayItem &item1 = GD_GetSubwayItem(item_id1); 117 const SubwayItem &item1 = GD_GetSubwayItem(item_id1);
119 const SubwayItem &item2 = GD_GetSubwayItem(item_id2); 118 const SubwayItem &item2 = GD_GetSubwayItem(item_id2);
120 119