Issue 81621 - Import of Word 2003 XML File that contains a table with missing defaultTabStop causes a crash
Summary: Import of Word 2003 XML File that contains a table with missing defaultTabSto...
Alias: None
Product: xml
Classification: Code
Component: external filters (show other issues)
Version: OOo 2.2.1
Hardware: PC Linux, all
: P2 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
Keywords: crash
Depends on:
Reported: 2007-09-16 18:54 UTC by oodhx
Modified: 2013-02-07 21:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

defaultTabStop is set to 1 -> no crash (1.15 KB, text/xml)
2007-09-16 18:56 UTC, oodhx
no flags Details
There is no defaultTabStop definition -> OO crashes. (1.12 KB, text/xml)
2007-09-16 18:57 UTC, oodhx
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description oodhx 2007-09-16 18:54:47 UTC
The crash occurs when 3 Parameters come together:

1. The File contains a Table with content.
2. There is a Style associated with that Table (or a Default style)
3. There is no defaultTabStop (or a defaultTabstop=0) in the xml file.

Attached are two Files with 1st and 2nd Parameter and once with a defaultTabStop
bigger than 0 (results in no crash) and the other one with no defaultTabStop
Comment 1 oodhx 2007-09-16 18:56:20 UTC
Created attachment 48260 [details]
defaultTabStop is set to 1 -> no crash
Comment 2 oodhx 2007-09-16 18:57:53 UTC
Created attachment 48261 [details]
There is no defaultTabStop definition -> OO crashes.
Comment 3 jogi 2007-10-01 08:00:30 UTC
-> SUS
Comment 4 Martin Hollmichel 2008-02-12 10:25:53 UTC
set target 3.0
Comment 5 xquery 2008-02-12 19:45:20 UTC
it easy to fix - if defaultTabStop absent - it must be set to default value (and
it can`t be zero - if user press tab then cursor must move at least one pixel is
not it?)

well - i open OO and save empty doc as MS Office 2003 xml and check
defaultTabStop value it was "709.317" is same value we should use by default? or
it must be value by default from MS Word 2003? I can`t check value from MS Word
because i am at home and i use Mandriva Linux at my notebook without anything
from MS on it. I`ll try check it tomorrow at work. But just interested if MS
have value by default different from OO default value - what is preferable MS
default value or OO default value?

i guess if doc saved from MS Word - then defaultTabStop will be present in any
case and will be > 0, so - if defaultTabStop is absent then almost 100% that we
have deal with generated by someone else XML doc & wich value this person expect
as default value? 42? (look movie "The Hitchhiker's Guide to the Galaxy") :)

well - if you provide default value (it must be positive value) the bug will be
Comment 6 oodhx 2008-02-13 08:30:58 UTC
You are right, the whole problem came up when I tried to reduce the size of my
generated xml files. It is not a problem for me anymore. I just add the
defaultTabStop to make the whole thing work in OO.
Anyway it seems a bit strange, that OO crashes in such a case. What default
value is used doesn't matter to me. And as I suppose someone who does not
specify a DefaultValue doesn't need one... it can as well be the default one
from OO or 1 or whatever positive value Word uses. I would suggest the OO default.
Comment 7 xquery 2008-02-13 12:09:37 UTC
i don`t know how to update CVS here
at my work machine i fix it 
it in file C:\Program Files\

in <xsl:template name="create-default-paragraph-styles"> just replace 

                    <xsl:attribute name="style:tab-stop-distance">
                        <xsl:call-template name="ConvertMeasure">
                            <xsl:with-param name="value"


                    <xsl:attribute name="style:tab-stop-distance">
                        <xsl:variable name="dts">
test="/w:wordDocument/w:docPr/w:defaultTabStop/@w:val &gt; 0">
                        <xsl:call-template name="ConvertMeasure">
                            <xsl:with-param name="value"
Comment 8 svante.schubert 2008-02-13 16:55:22 UTC
Hi guys,

the best way to get your fix into the CVS is by providing a patch.
More information can be found in the wiki:

Thanks for your help and engagement!
Comment 9 svante.schubert 2008-05-30 14:47:43 UTC
I am sorry, I am no longer working on this format.
Changed target to Office later.
Is anybody able to take this over? And/or provide a patch for this problem?

Thanks in advance,