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 013919F6F for ; Thu, 7 Jun 2012 06:49:08 +0000 (UTC) Received: (qmail 30848 invoked by uid 500); 7 Jun 2012 06:49:07 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 30781 invoked by uid 500); 7 Jun 2012 06:49:07 -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 30761 invoked by uid 99); 7 Jun 2012 06:49:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2012 06:49:07 +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, 07 Jun 2012 06:49:05 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id 1242644C9; Thu, 7 Jun 2012 06:48:44 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: [Bug 119478] [From Symphony]PPT Import:Cell background color in table gets lost while opening a ppt file with AOO Date: Thu, 07 Jun 2012 06:48:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: presentation X-Bugzilla-Component: open-import X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: debin.lei@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: 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=119478 --- Comment #5 from Lei Debin --- After more investigation, I have found the root cause. There is a function named as: void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell ) in main\filter\source\msfilter\svdfppt.cxx The function will apply the attributes for the cell of tables in SD application. Here is the codes for processing the transparent of the background cell color --------------------------------------------------------------------------- sal_Int16 nFillTransparence( ( (const XFillTransparenceItem&)pObj->GetMergedItem( XATTR_FILLTRANSPARENCE ) ).GetValue() ); if ( nFillTransparence != 100 ) { nFillTransparence *= 100; static const rtl::OUString sFillTransparence( String(RTL_CONSTASCII_USTRINGPARAM( "FillTransparence" ) ) ); xPropSet->setPropertyValue( sFillTransparence, Any( nFillTransparence )); } ------------------------------------------------------------------------ The var nFillTransparence is ranged from 0(solid) to 100(completed transparent). So the nFillTransparence *= 100; is complete wrong. It should be removed. And when nFillTransparence == 100 need to be set the value too, otherwise, the color will be solid, not transparent. -- You are receiving this mail because: You are the assignee for the bug.