diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-30 11:31:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-30 13:18:38 +0000 |
commit | bbc94edb9a91b27910d43610db9994df10dd99e1 (patch) | |
tree | 99f81b7bc96dd93ae6c6e6a4f7a57cfda72cdfa4 /sc/source/ui/view/tabvwshe.cxx | |
parent | 47e1e8494dde85414d28efafa99b33a62b59116d (diff) |
refactor ConvertLineEnd
Diffstat (limited to 'sc/source/ui/view/tabvwshe.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwshe.cxx | 4 |
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. |