summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index 4418a4745f64..16a37bd1200a 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -533,6 +533,12 @@ IMPL_LINK( FmGridHeader, OnAsyncExecuteDrop, void*, /*NOTINTERESTEDIN*/ )
else
xCol->setPropertyValue(FM_PROP_LABEL, makeAny(sFieldName));
+ // jetzt einfuegen
+ Any aElement;
+ aElement <<= xCol;
+
+ xCols->insertByIndex(nPos, aElement);
+
FormControlFactory aControlFactory;
aControlFactory.initializeControlModel( DocumentClassification::classifyHostDocument( xCols ), xCol );
aControlFactory.initializeFieldDependentProperties( xField, xCol, xNumberFormats );
@@ -567,11 +573,6 @@ IMPL_LINK( FmGridHeader, OnAsyncExecuteDrop, void*, /*NOTINTERESTEDIN*/ )
else
xCol->setPropertyValue(FM_PROP_NAME, makeAny(sFieldName));
- // jetzt einfuegen
- Any aElement;
- aElement <<= xCol;
- xCols->insertByIndex(nPos, aElement);
-
if (bDateNTimeCol)
{
aElement <<= xSecondCol;