Bugfix: Look for the paragraph number properties in the style as well#251
Bugfix: Look for the paragraph number properties in the style as well#251ROM-Knowledgeware wants to merge 2 commits intoxceedsoftware:masterfrom
Conversation
|
Hi, |
|
Sure, here is a sample that demonstrate the cases that my patch fixes: Note that the sample contains a first paragraph that is not part of a list (numId=0), however, currently Paragraph.IsListItem returns True for this paragraph, this is one of the bugs that my patch fixes. |
|
Ok, Thank you, we will have a look at this. |
|
Hi, The doc says : "A value of 0 for the val attribute shall never be used to point to a numbering definition instance, and shall instead only be used to designate the removal of numbering properties at a particular level in the style hierarchy (typically via direct formatting)." So a numId with val of 0 is a ListItem, without the number. I understand that it looks like its not a ListItem, but it needs to be considered it as a ListItem. Thank you. |
|
Hi,
You are misinterpreting the definition, when a numId has a value of 0 it's as-if there are no numbering properties, and we DO NOT increment any number, we do not even have a number to increment because there is no list associated with the paragraph. I have attached an example so you could better understand the correct interpretation: As you can see in the example, the first paragraph with the Heading1 style has a numId set to 0, |
|
Hi, You are right, this will be fixed in v1.6. |
This commit also adds support for style inheritance (the 'basedOn' property)