Don't crash when elevation enabled, but layers panel hidden

This commit is contained in:
Dustin Carlino 2021-09-21 10:29:22 -07:00
parent 4782dac84b
commit e571ce3703

View File

@ -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 {