diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-10-18 10:46:30 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-10-18 10:46:30 +0000 |
commit | 17d3d6b3e5c95676a370c349ad10d22746bfb98d (patch) | |
tree | 8263517ecb851a7bf17d7770091b9db8737b652b /sc/source/ui/dbgui/scuiasciiopt.cxx | |
parent | 0f66dd3fba6301bdda112c08d25f805d06372f63 (diff) |
INTEGRATION: CWS calc39 (1.9.62); FILE MERGED
2006/10/05 22:30:57 er 1.9.62.1: #i15509# invoke CSV text import dialog when pasting unformatted text with delimiters from clipboard
Diffstat (limited to 'sc/source/ui/dbgui/scuiasciiopt.cxx')
-rw-r--r-- | sc/source/ui/dbgui/scuiasciiopt.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index 68701a8120fd..6ba8ea3972c1 100644 --- a/sc/source/ui/dbgui/scuiasciiopt.cxx +++ b/sc/source/ui/dbgui/scuiasciiopt.cxx @@ -4,9 +4,9 @@ * * $RCSfile: scuiasciiopt.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: kz $ $Date: 2006-07-21 13:28:15 $ + * last change: $Author: ihi $ $Date: 2006-10-18 11:46:30 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -162,9 +162,13 @@ ScImportAsciiDlg::ScImportAsciiDlg( Window* pParent,String aDatName, FreeResource(); String aName = GetText(); - aName.AppendAscii(RTL_CONSTASCII_STRINGPARAM(" - [")); - aName += aDatName; - aName += ']'; + // aDatName is empty if invoked during paste from clipboard. + if (aDatName.Len()) + { + aName.AppendAscii(RTL_CONSTASCII_STRINGPARAM(" - [")); + aName += aDatName; + aName += ']'; + } SetText( aName ); switch(cSep) |