Remove case divide by zero at fitting mode setup + Remove useless pixel area calculation 63/311863/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 29 May 2024 06:31:33 +0000 (15:31 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 29 May 2024 06:32:35 +0000 (15:32 +0900)
commit3a3e92420a0a02e74ed27605e752ee746350ef87
treebc693f7c80204321c471dcc0e04910e2914f8a41
parent5657824a1448243bdfb4b55f78cc5217b0fb4f1e
Remove case divide by zero at fitting mode setup + Remove useless pixel area calculation

It was possible that natural size is zero.

If so, we should not throw exception, and just calculate like size is zero.

And also, if we don't need to calculate pixel area size, we don't need to
do some float-division calculation.

Change-Id: If8d817c46425285e8fe7a6a2818696c3e79c064e
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/controls/control/control-data-impl.cpp