equal
deleted
inserted
replaced
2270 |
2270 |
2271 rect.iBr.iY = rect.iTl.iY + iBubbleSize.iHeight; |
2271 rect.iBr.iY = rect.iTl.iY + iBubbleSize.iHeight; |
2272 |
2272 |
2273 if((TBidiText::TextDirectionality(aText) == TBidiText:: ERightToLeft) && (aText.Length() > 1)) |
2273 if((TBidiText::TextDirectionality(aText) == TBidiText:: ERightToLeft) && (aText.Length() > 1)) |
2274 { |
2274 { |
2275 HBufC* displayStr = aText.AllocLC(); |
2275 |
2276 |
2276 HBufC* displayStr = aText.Alloc(); |
2277 TInt i = 0; |
2277 TInt i = 0; |
2278 TInt charNum = displayStr->Length(); |
2278 TInt charNum = displayStr->Length(); |
2279 |
2279 |
2280 while(i < charNum) |
2280 while(i < charNum) |
2281 { |
2281 { |
2282 displayStr->Des()[i] = aText[(charNum-1)-i]; |
2282 displayStr->Des()[i] = aText[(charNum-1)-i]; |
2283 ++i; |
2283 ++i; |
2284 } |
2284 } |
2285 TRAP_IGNORE(iBubbleCtrl->SetTextL(*displayStr)); |
2285 TRAP_IGNORE(iBubbleCtrl->SetTextL(*displayStr)); |
2286 CleanupStack::PopAndDestroy(displayStr); |
2286 |
|
2287 delete displayStr; |
|
2288 |
2287 } |
2289 } |
2288 else |
2290 else |
2289 { |
2291 { |
2290 TRAP_IGNORE(iBubbleCtrl->SetTextL(aText)); |
2292 TRAP_IGNORE(iBubbleCtrl->SetTextL(aText)); |
2291 } |
2293 } |