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
Text Drop Shadow sorting fix
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
bidirectional-support.cpp
diff --git
a/dali-toolkit/internal/text/bidirectional-support.cpp
b/dali-toolkit/internal/text/bidirectional-support.cpp
index
c982018
..
135f71b
100644
(file)
--- a/
dali-toolkit/internal/text/bidirectional-support.cpp
+++ b/
dali-toolkit/internal/text/bidirectional-support.cpp
@@
-20,7
+20,7
@@
// EXTERNAL INCLUDES
#include <memory.h>
// EXTERNAL INCLUDES
#include <memory.h>
-#include <dali/
public
-api/text-abstraction/bidirectional-support.h>
+#include <dali/
devel
-api/text-abstraction/bidirectional-support.h>
namespace Dali
{
namespace Dali
{
@@
-170,7
+170,7
@@
void ReplaceBidirectionalInfo( LogicalModel& model,
}
void ReorderLines( const Vector<BidirectionalParagraphInfoRun>& bidirectionalInfo,
}
void ReorderLines( const Vector<BidirectionalParagraphInfoRun>& bidirectionalInfo,
-
const
Vector<LineRun>& lineRuns,
+ Vector<LineRun>& lineRuns,
Vector<BidirectionalLineInfoRun>& lineInfoRuns )
{
// Handle to the bidirectional info module in text-abstraction.
Vector<BidirectionalLineInfoRun>& lineInfoRuns )
{
// Handle to the bidirectional info module in text-abstraction.
@@
-202,12
+202,15
@@
void ReorderLines( const Vector<BidirectionalParagraphInfoRun>& bidirectionalInf
lineIndex = firstLine + numberOfLines;
// Traverse the lines and reorder them
lineIndex = firstLine + numberOfLines;
// Traverse the lines and reorder them
- for( Vector<LineRun>::
Const
Iterator lineIt = lineRuns.Begin() + firstLine,
+ for( Vector<LineRun>::Iterator lineIt = lineRuns.Begin() + firstLine,
endLineIt = lineRuns.Begin() + firstLine + numberOfLines;
lineIt != endLineIt;
++lineIt )
{
endLineIt = lineRuns.Begin() + firstLine + numberOfLines;
lineIt != endLineIt;
++lineIt )
{
- const LineRun& line = *lineIt;
+ LineRun& line = *lineIt;
+
+ // Sets the paragraph's direction.
+ line.direction = direction;
// Creates a bidirectional info for the line run.
BidirectionalLineInfoRun lineInfoRun;
// Creates a bidirectional info for the line run.
BidirectionalLineInfoRun lineInfoRun;