Collapse executor if output is empty (fixes issue #648)
This commit is contained in:
@@ -321,6 +321,21 @@ void execp_compute_icon_text_geometry(Execp *execp,
|
||||
*icon_w = *icon_h = 0;
|
||||
}
|
||||
|
||||
if ((*icon_h == 0 || *icon_w == 0) && execp->backend->text[0] == 0) {
|
||||
*new_size = 0;
|
||||
*txt_height_ink = 0;
|
||||
*txt_height = 0;
|
||||
*txt_width = 0;
|
||||
if (panel_horizontal) {
|
||||
if (area->width)
|
||||
*resized = TRUE;
|
||||
} else {
|
||||
if (area->height)
|
||||
*resized = TRUE;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
*text_next_line = !panel_horizontal && *icon_w > area->width / 2;
|
||||
|
||||
int available_w, available_h;
|
||||
|
||||
Reference in New Issue
Block a user