From 977eae16c7bd67034d65835839406a81f15ba8fd Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 31 Jul 2011 14:29:04 +0000 Subject: [PATCH] more tooltip calc fixes: if edje minw/minh is 0x0 from calc, use evas minw/minh so it's visible SVN revision: 61926 --- legacy/elementary/src/lib/els_tooltip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/els_tooltip.c b/legacy/elementary/src/lib/els_tooltip.c index 01c05b6fde..71c4f775cf 100644 --- a/legacy/elementary/src/lib/els_tooltip.c +++ b/legacy/elementary/src/lib/els_tooltip.c @@ -348,8 +348,8 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt) evas_object_size_hint_min_get(tt->content, &ominw, &ominh); edje_object_size_min_get(tt->tooltip, &eminw, &eminh); - if (ominw < eminw) ominw = eminw; - if (ominh < eminh) ominh = eminh; + if (eminw && (ominw < eminw)) ominw = eminw; + if (eminw && (ominh < eminh)) ominh = eminh; if (ominw < 1) ominw = 10; /* at least it is noticeable */ if (ominh < 1) ominh = 10; /* at least it is noticeable */