diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-06-25 19:21:32 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-06-25 19:21:32 +0000 |
commit | d3c566b773991713d97ed1955eb01ee9b8aefdd0 (patch) | |
tree | f27bd6c0554835da128e93095a9b31d1ed6beb80 /sc/source/ui/docshell/docsh2.cxx | |
parent | f653836cf89f50267c70a916e2698ec5971805a3 (diff) |
#87795# support CJK character compression
Diffstat (limited to 'sc/source/ui/docshell/docsh2.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh2.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh2.cxx b/sc/source/ui/docshell/docsh2.cxx index f6c768e530b5..8742c6e671c7 100644 --- a/sc/source/ui/docshell/docsh2.cxx +++ b/sc/source/ui/docshell/docsh2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docsh2.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: nn $ $Date: 2001-05-14 08:42:09 $ + * last change: $Author: nn $ $Date: 2001-06-25 20:20:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -210,6 +210,13 @@ void ScDocShell::InitItems() aDocument.SetForbiddenCharacters( xForbiddenTable ); } } + + if ( !aDocument.IsValidAsianCompression() ) + { + // set compression mode from configuration if not already set (e.g. XML import) + SvxAsianConfig aAsian( sal_False ); //! share with forbidden characters + aDocument.SetAsianCompression( aAsian.GetCharDistanceCompression() ); + } } //------------------------------------------------------------------ |