mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
fmt (#2911)
This commit is contained in:
@@ -796,11 +796,7 @@ pub(crate) fn show(app: &mut VectorcraftApp, ui: &mut egui::Ui) -> bool {
|
||||
}
|
||||
}
|
||||
for (layer, layout_rect, fill) in fills {
|
||||
let rect = ui
|
||||
.ctx()
|
||||
.memory(|memory| memory.area_rect(layer.id))
|
||||
.filter(|rect| rect.is_positive())
|
||||
.unwrap_or(layout_rect);
|
||||
let rect = ui.ctx().memory(|memory| memory.area_rect(layer.id)).filter(|rect| rect.is_positive()).unwrap_or(layout_rect);
|
||||
if rect.is_positive() {
|
||||
ui.ctx().layer_painter(layer).set(fill, egui::Shape::rect_filled(rect, 0.0, t.panel));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user