Return-Path: X-Original-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C3E7D4F8 for ; Thu, 13 Sep 2012 02:32:44 +0000 (UTC) Received: (qmail 18184 invoked by uid 500); 13 Sep 2012 02:32:44 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 18161 invoked by uid 500); 13 Sep 2012 02:32:44 -0000 Mailing-List: contact ooo-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-issues@incubator.apache.org Delivered-To: mailing list ooo-issues@incubator.apache.org Received: (qmail 18151 invoked by uid 99); 13 Sep 2012 02:32:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 02:32:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.123] (HELO sif.zones.apache.org) (140.211.11.123) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 02:32:41 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id 87E8975A9; Thu, 13 Sep 2012 02:32:20 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: [Bug 119657] [From Symphony] Additional dot appear after the numbering. Date: Thu, 13 Sep 2012 02:32:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: word processor X-Bugzilla-Component: open-import X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wujinlong@gmail.com X-Bugzilla-Status: CONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ooo-issues@incubator.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/ooo/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://issues.apache.org/ooo/show_bug.cgi?id=119657 wujinlong@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #79452| |review? Flags| | --- Comment #2 from wujinlong@gmail.com --- Created attachment 79452 --> https://issues.apache.org/ooo/attachment.cgi?id=79452&action=edit patch I had a fix for this bug. The problem is about an AbstracNum references to a style, which references to another Num. We don't have code to handle such case in Aoo. My solution is, 1) During parsing of the styles.xml, if one style has numId property, save it. (Changes in PropertyMap.hxx, DomainMapper.cxx) 2) During parsing of the numbering.xml, if an AbstractNum has a style linked, find the style and get the Num the style uses, then use this Num to find the actual AbstractNum that should be used. (Changes in NumberingManager.hxx, NumberingManager.cxx) Below is XML examples shows this use case. In styles.xml, there is a style named 'style1', which uses Num '15'. In numbering.xml, the Num '16' uses AbstractNum '1', which has a style linked to 'style1'. The Num '15' uses AbstractNum '14'. In document.xml, paragraph uses numbering '16', so it actually should uses numbering '15' (AbstractNum '14'). ------------- styles.xml ------------- ------------- styles.xml ------------- ------------- numbering.xml ------------- ------------- numbering.xml ------------- ------------- document.xml ------------- L ist style ------------- document.xml ------------- -- You are receiving this mail because: You are the assignee for the bug.