From a97c1a20844444b82a1aa5d5151f9425e567ba6f Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Tue, 1 Feb 2011 16:06:04 +0900 Subject: [PATCH] [cnp_helper] adding lower bound for image pasting --- src/lib/elm_cnp_helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/elm_cnp_helper.c b/src/lib/elm_cnp_helper.c index 764ef60..72f3197 100644 --- a/src/lib/elm_cnp_helper.c +++ b/src/lib/elm_cnp_helper.c @@ -1148,6 +1148,10 @@ pasteimage_append(Paste_Image *pi, Evas_Object *entry) tw = (double)w*divd; th = (double)h*divd; } + if (tw < 20) + tw = 20; + if (th < 20) + th = 20; sprintf(imgres, "%dx%d", (int)tw, (int)th); } else -- 2.7.4