summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-16 11:53:58 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-16 11:53:58 +0000
commit61f5ce257d402c35e8c909e141c780ba40407a21 (patch)
treeac78cbb4e30b580dc421f99f4760a187a48cd57f /sw/source/filter
parent72766d1b226b95e2e1239e27603713b71865516d (diff)
INTEGRATION: CWS borderingfilterteam28 (1.142.44); FILE MERGED
2004/11/05 16:31:41 mmaher 1.142.44.2: RESYNC: (1.142-1.143); FILE MERGED 2004/11/04 13:43:32 mmaher 1.142.44.1: #i26736# Tab problem (patch courtesy of cmc)
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx20
1 files changed, 15 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index dbbf0dad3138..8b53d59cf310 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ww8par.cxx,v $
*
- * $Revision: 1.143 $
+ * $Revision: 1.144 $
*
- * last change: $Author: rt $ $Date: 2004-10-28 13:06:42 $
+ * last change: $Author: obo $ $Date: 2004-11-16 12:53:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1503,11 +1503,21 @@ void SwWW8ImplReader::Read_Tab(USHORT , const BYTE* pData, short nLen)
NewAttr(aAttr);
else
{
- using namespace sw::util;
- SvxTabStopItem aOrig = pSty ?
+ //Here we have a tab definition which inserts no extra tabs, or deletes
+ //no existing tabs. An older version of writer is probably the creater
+ //of the document :-( . So if we are importing a style we can just
+ //ignore it. But if we are importing into text we cannot as during
+ //text SwWW8ImplReader::Read_Tab is called at the begin and end of
+ //the range the attrib affects, and ignoring it would upset the
+ //balance
+ if (!pAktColl) //not importing into a style
+ {
+ using namespace sw::util;
+ SvxTabStopItem aOrig = pSty ?
ItemGet<SvxTabStopItem>(*pSty, RES_PARATR_TABSTOP) :
DefaultItemGet<SvxTabStopItem>(rDoc, RES_PARATR_TABSTOP);
- NewAttr(aOrig);
+ NewAttr(aOrig);
+ }
}
}