[cnp_helper] adding lower bound for image pasting
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 1 Feb 2011 07:06:04 +0000 (16:06 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 1 Feb 2011 07:06:04 +0000 (16:06 +0900)
src/lib/elm_cnp_helper.c

index 764ef60..72f3197 100644 (file)
@@ -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