diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-08-16 09:21:29 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-08-16 09:21:29 +0000 |
commit | 6c142e583b230d6749fa29f3be0da7b340558b4d (patch) | |
tree | 4a93ac4557d39bdf3ff71e9f82ff599e1050b351 /xmloff/source/text/XMLTextShapeImportHelper.cxx | |
parent | eb23614b006aeda38278a0286c2deb9f198f90d7 (diff) |
#91123# Avoid problems with page-bound shapes in paragraphs (for import filters)
Diffstat (limited to 'xmloff/source/text/XMLTextShapeImportHelper.cxx')
-rw-r--r-- | xmloff/source/text/XMLTextShapeImportHelper.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLTextShapeImportHelper.cxx b/xmloff/source/text/XMLTextShapeImportHelper.cxx index 5ae0dc5f8a6d..c71001c8a4f5 100644 --- a/xmloff/source/text/XMLTextShapeImportHelper.cxx +++ b/xmloff/source/text/XMLTextShapeImportHelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLTextShapeImportHelper.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: mib $ $Date: 2001-04-23 07:37:30 $ + * last change: $Author: dvo $ $Date: 2001-08-16 10:21:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -198,8 +198,12 @@ void XMLTextShapeImportHelper::addShape( switch( eAnchorType ) { case TextContentAnchorType_AT_PAGE: - aAny <<= nPage; - xPropSet->setPropertyValue( sAnchorPageNo, aAny ); + // only set positive page numbers + if ( nPage > 0 ) + { + aAny <<= nPage; + xPropSet->setPropertyValue( sAnchorPageNo, aAny ); + } break; case TextContentAnchorType_AS_CHARACTER: aAny <<= nY; |