summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh2.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-06-25 19:21:32 +0000
committerNiklas Nebel <nn@openoffice.org>2001-06-25 19:21:32 +0000
commitd3c566b773991713d97ed1955eb01ee9b8aefdd0 (patch)
treef27bd6c0554835da128e93095a9b31d1ed6beb80 /sc/source/ui/docshell/docsh2.cxx
parentf653836cf89f50267c70a916e2698ec5971805a3 (diff)
#87795# support CJK character compression
Diffstat (limited to 'sc/source/ui/docshell/docsh2.cxx')
-rw-r--r--sc/source/ui/docshell/docsh2.cxx11
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() );
+ }
}
//------------------------------------------------------------------