summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2000-10-10 12:17:20 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2000-10-10 12:17:20 +0000
commit93d0d9a69abb34cbd114123d3fe1a0c172df08c0 (patch)
tree1de8a84658b271fcfb64ca10ad73e41b30fcfc63
parentdf7caa703b1ffb91521ae9b62b422913ea800c3b (diff)
- fixed #79367#: GPF when saving Impress file (with textfields)
(Property TextField not supported)
-rw-r--r--xmloff/source/text/txtparae.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index a31d77b2c6bc..e22b681bb4de 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtparae.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: mib $ $Date: 2000-09-29 13:33:43 $
+ * last change: $Author: dvo $ $Date: 2000-10-10 13:17:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -969,6 +969,10 @@ void XMLTextParagraphExport::exportTextField(
sal_Bool bAutoStyles )
{
Reference < XPropertySet > xPropSet( rTextRange, UNO_QUERY );
+ // non-Writer apps need not support Property TextField, so test first
+ // TODO: fix indentation with next rev.
+ if (xPropSet->getPropertySetInfo()->hasPropertyByName( sTextField ))
+ {
Any aAny = xPropSet->getPropertyValue( sTextField );
Reference < XTextField > xTxtFld;
@@ -999,6 +1003,7 @@ void XMLTextParagraphExport::exportTextField(
}
}
}
+ }
}
void XMLTextParagraphExport::exportTextMark(