summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/tabvwshe.cxx')
-rw-r--r--sc/source/ui/view/tabvwshe.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabvwshe.cxx b/sc/source/ui/view/tabvwshe.cxx
index 997a233ba87a..fb20104cb8a6 100644
--- a/sc/source/ui/view/tabvwshe.cxx
+++ b/sc/source/ui/view/tabvwshe.cxx
@@ -111,9 +111,7 @@ String ScTabViewShell::GetSelectionText( sal_Bool bWholeWord )
aObj.SetFormulas( GetViewData()->GetOptions().GetOption( VOPT_FORMULAS ) );
rtl::OUString aExportOUString;
aObj.ExportString( aExportOUString );
- aStrSelection = aExportOUString;
-
- aStrSelection.ConvertLineEnd( LINEEND_CR );
+ aStrSelection = convertLineEnd(aExportOUString, LINEEND_CR);
// Tab/CR durch Space ersetzen, wenn fuer Dialog oder per Basic/SelectionTextExt,
// oder wenn es eine einzelne Zeile ist.