projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c85ab3
)
dont SIGFPE
author
Carsten Haitzler
<raster@rasterman.com>
Fri, 7 Jan 2005 08:35:27 +0000
(08:35 +0000)
committer
Carsten Haitzler
<raster@rasterman.com>
Fri, 7 Jan 2005 08:35:27 +0000
(08:35 +0000)
SVN revision: 12807
legacy/edje/src/lib/edje_calc.c
patch
|
blob
|
history
diff --git
a/legacy/edje/src/lib/edje_calc.c
b/legacy/edje/src/lib/edje_calc.c
index
0df2b27
..
d01f29c
100644
(file)
--- a/
legacy/edje/src/lib/edje_calc.c
+++ b/
legacy/edje/src/lib/edje_calc.c
@@
-648,6
+648,7
@@
_edje_part_recalc_single(Edje *ed,
else if (ep->part->dragable.count_x > 0)
{
step = (confine_to->w - params->w) / ep->part->dragable.count_x;
+ if (step < 1) step = 1;
params->x = confine_to->x +
((offset / step) * step);
}
@@
-669,6
+670,7
@@
_edje_part_recalc_single(Edje *ed,
else if (ep->part->dragable.count_y > 0)
{
step = (confine_to->h - params->h) / ep->part->dragable.count_y;
+ if (step < 1) step = 1;
params->y = confine_to->y +
((offset / step) * step);
}