mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
Don't crash when elevation enabled, but layers panel hidden
This commit is contained in:
parent
4782dac84b
commit
e571ce3703
@ -63,7 +63,7 @@ impl Layers {
|
||||
self.road_types.clear();
|
||||
}
|
||||
|
||||
if ctx.redo_mouseover() && self.elevation {
|
||||
if ctx.redo_mouseover() && self.elevation && !self.minimized {
|
||||
let mut label = Text::new().into_widget(ctx);
|
||||
|
||||
if ctx.canvas.cam_zoom < app.opts.min_zoom_for_detail {
|
||||
|
Loading…
Reference in New Issue
Block a user