forked from enlightenment/terminology
termio: reset size when size looks boggus.
Patch by netstar
This commit is contained in:
parent
f4813a229d
commit
566dc187d6
|
@ -5088,8 +5088,11 @@ _smart_size(Evas_Object *obj, int w, int h, Eina_Bool force)
|
||||||
Termio *sd = evas_object_smart_data_get(obj);
|
Termio *sd = evas_object_smart_data_get(obj);
|
||||||
EINA_SAFETY_ON_NULL_RETURN(sd);
|
EINA_SAFETY_ON_NULL_RETURN(sd);
|
||||||
|
|
||||||
if (w <= 1) w = 80;
|
if ((w <= 1) || (h <= 1))
|
||||||
if (h <= 1) h = 24;
|
{
|
||||||
|
w = 80;
|
||||||
|
h = 24;
|
||||||
|
}
|
||||||
|
|
||||||
if (!force)
|
if (!force)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue