summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2000-10-26 08:18:20 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2000-10-26 08:18:20 +0000
commit3eb2ecd4eda1251d554f7a1929de79e35b1b199c (patch)
tree6423111121a994dc17b229f1aa3b15ab9e910bec /xmloff
parent1278705da9e1b06095bc7d32572a83066c5a0d53 (diff)
- fixed: crash on import of incomplete references
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparai.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 5d7916031ed1..e1f027d14771 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtparai.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: dvo $ $Date: 2000-09-27 15:58:45 $
+ * last change: $Author: dvo $ $Date: 2000-10-26 09:18:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -371,6 +371,10 @@ XMLStartReferenceContext_Impl::XMLStartReferenceContext_Impl(
{
XMLHint_Impl* pHint = new XMLReferenceHint_Impl(
sName, rImport.GetTextImport()->GetCursor()->getStart() );
+
+ // degenerates to point reference, if no end is found!
+ pHint->SetEnd(rImport.GetTextImport()->GetCursor()->getStart() );
+
rHints.Insert(pHint, rHints.Count());
}
}