about summary refs log tree commit diff stats
path: root/src/subway_map.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-15 11:09:23 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-15 11:09:23 -0400
commita5a6c1b8b902c960f8204f8d814ce579dfd5fa50 (patch)
treebad31379c4a52496260377bfce8321ae2c2f8a3c /src/subway_map.cpp
parentf4354d64021d2c6833a59a1b64fb30f87d1175bc (diff)
downloadlingo-ap-tracker-a5a6c1b8b902c960f8204f8d814ce579dfd5fa50.tar.gz
lingo-ap-tracker-a5a6c1b8b902c960f8204f8d814ce579dfd5fa50.tar.bz2
lingo-ap-tracker-a5a6c1b8b902c960f8204f8d814ce579dfd5fa50.zip
Hovering over a connection only shows nearest hops
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