summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmloff/source/draw/ximpshap.cxx8
-rw-r--r--xmloff/source/draw/ximpshap.hxx5
2 files changed, 9 insertions, 4 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index 7dba70aa01c9..3a98218c969a 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ximpshap.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: cl $ $Date: 2000-10-26 09:59:25 $
+ * last change: $Author: cl $ $Date: 2000-11-02 10:56:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -190,6 +190,9 @@ SdXMLShapeContext::~SdXMLShapeContext()
{
if(mxCursor.is())
GetImport().GetTextImport()->ResetCursor();
+
+ if(mxOldCursor.is())
+ GetImport().GetTextImport()->SetCursor( mxOldCursor );
}
//////////////////////////////////////////////////////////////////////////////
@@ -204,6 +207,7 @@ SvXMLImportContext *SdXMLShapeContext::CreateChildContext( USHORT nPrefix,
uno::Reference< text::XText > xText( mxShape, uno::UNO_QUERY );
if( xText.is() )
{
+ mxOldCursor = GetImport().GetTextImport()->GetCursor();
mxCursor = xText->createTextCursor();
if( mxCursor.is() )
{
diff --git a/xmloff/source/draw/ximpshap.hxx b/xmloff/source/draw/ximpshap.hxx
index c575e9a5ff55..69493753cba7 100644
--- a/xmloff/source/draw/ximpshap.hxx
+++ b/xmloff/source/draw/ximpshap.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ximpshap.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: cl $ $Date: 2000-10-26 09:59:25 $
+ * last change: $Author: cl $ $Date: 2000-11-02 10:56:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -96,6 +96,7 @@ protected:
com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > mxShapes;
com::sun::star::uno::Reference< com::sun::star::drawing::XShape > mxShape;
com::sun::star::uno::Reference< com::sun::star::text::XTextCursor > mxCursor;
+ com::sun::star::uno::Reference< com::sun::star::text::XTextCursor > mxOldCursor;
rtl::OUString maDrawStyleName;
rtl::OUString maPresentationClass;
sal_Int32 mnRotate;