projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[AT-SPI] UTC correction
[platform/core/uifw/dali-toolkit.git]
/
automated-tests
/
src
/
dali-toolkit-internal
/
utc-Dali-Text-Layout.cpp
diff --git
a/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp
b/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp
index
763a5ac
..
05226d4
100755
(executable)
--- a/
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp
+++ b/
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp
@@
-199,7
+199,7
@@
bool LayoutTextTest( const LayoutTextData& data )
{
const Vector2& position = *( glyphPositions.Begin() + index );
{
const Vector2& position = *( glyphPositions.Begin() + index );
- if( fabsf(
position.x
- *( data.positions + 2u * index ) ) > Math::MACHINE_EPSILON_1000 )
+ if( fabsf(
std::round( position.x )
- *( data.positions + 2u * index ) ) > Math::MACHINE_EPSILON_1000 )
{
std::cout << " Different position for glyph " << index << " x : " << position.x << ", expected : " << *( data.positions + 2u * index ) << std::endl;
return false;
{
std::cout << " Different position for glyph " << index << " x : " << position.x << ", expected : " << *( data.positions + 2u * index ) << std::endl;
return false;