summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-10-17 09:28:43 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-10-17 09:28:43 +0000
commit7d28d80f8061c431adc2a11d4cfd70e09d43cb9d (patch)
treeeb72da21335f392d4ed1eb20fb4f2600d98aa247 /xmloff
parent5ed4f0e4f44a37b09fd37e4afdcab204799b035b (diff)
#93192# adjust SubType for variable SetVarFields
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtvfldi.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx
index 15059514e2bc..e8566ed79146 100644
--- a/xmloff/source/text/txtvfldi.cxx
+++ b/xmloff/source/text/txtvfldi.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtvfldi.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: dvo $ $Date: 2001-06-29 21:07:22 $
+ * last change: $Author: dvo $ $Date: 2001-10-17 10:28:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -902,7 +902,15 @@ XMLVariableDeclImportContext::XMLVariableDeclImportContext(
}
break;
case VarTypeSimple:
- break; // nothing
+ {
+ // set string or non-string SubType (#93192#)
+ // The SubType was already set in the FindFieldMaster
+ // method, but it needs to be adjusted if it's a string.
+ aAny <<= aValueHelper.IsStringValue()
+ ? SetVariableType::STRING : SetVariableType::VAR;
+ xFieldMaster->setPropertyValue(sPropertySubType, aAny);
+ }
+ break;
case VarTypeUserField:
{
sal_Bool bTmp = !aValueHelper.IsStringValue();