summaryrefslogtreecommitdiff
path: root/vcl/source/edit/xtextedt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/edit/xtextedt.cxx')
-rw-r--r--vcl/source/edit/xtextedt.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/edit/xtextedt.cxx b/vcl/source/edit/xtextedt.cxx
index ceec23c24552..8de09acad655 100644
--- a/vcl/source/edit/xtextedt.cxx
+++ b/vcl/source/edit/xtextedt.cxx
@@ -360,10 +360,10 @@ sal_Bool ExtTextView::ImpIndentBlock( sal_Bool bRight )
else
{
// remove Tabs/Blanks
- String aText = GetTextEngine()->GetText( nPara );
- if ( aText.Len() && (
- ( aText.GetChar( 0 ) == '\t' ) ||
- ( aText.GetChar( 0 ) == ' ' ) ) )
+ OUString aText = GetTextEngine()->GetText( nPara );
+ if ( !aText.isEmpty() && (
+ ( aText[ 0 ] == '\t' ) ||
+ ( aText[ 0 ] == ' ' ) ) )
{
GetTextEngine()->ImpDeleteText( TextSelection( TextPaM( nPara, 0 ), TextPaM( nPara, 1 ) ) );
bDone = sal_True;