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 0C4229C95 for ; Sat, 23 Jun 2012 05:18:35 +0000 (UTC) Received: (qmail 98202 invoked by uid 500); 23 Jun 2012 05:18:34 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 98096 invoked by uid 500); 23 Jun 2012 05:18:33 -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 97923 invoked by uid 99); 23 Jun 2012 05:18:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jun 2012 05:18:30 +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; Sat, 23 Jun 2012 05:18:29 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id 0B7ED4CD0; Sat, 23 Jun 2012 05:18:08 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: [Bug 119989] [From Symphony]Pie chart height becomes greater when open Excel file Date: Sat, 23 Jun 2012 05:18:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: chart X-Bugzilla-Component: open-import X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: litanbj@cn.ibm.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 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/ooo/show_bug.cgi?id=119989 --- Comment #16 from Tan Li --- Armin, thanks for your question! We are on traditional holiday and sorry for late answer! I have debug code "fDepth = this->getTransformedDepth();", and the function getTransformedDepth is double VSeriesPlotter::getTransformedDepth() const { double MinZ = m_pMainPosHelper->getLogicMinZ(); double MaxZ = m_pMainPosHelper->getLogicMaxZ(); m_pMainPosHelper->doLogicScaling( 0, 0, &MinZ ); m_pMainPosHelper->doLogicScaling( 0, 0, &MaxZ ); return FIXED_SIZE_FOR_3D_CHART_VOLUME/(MaxZ-MinZ); } FIXED_SIZE_FOR_3D_CHART_VOLUME/(MaxZ-MinZ) always is fixed value, so I have no idea how to change return value of getTransformedDepth() according to Excel 3D height. In my patch, bIsExcel3DChart is used to differentiate between Excel 3D PieChart and AOO 3D Piechart, because AOO 3D Piechart height is fixed value which is return value of getTransformedDepth(); while Excel 3D PieChart will adjust according to n3DHeight of Excel record, so we use it as coefficient to multiply with return value of getTransformedDepth(). If don't use "IsExcel3DChart", I found Excel 3D PieChart height will behave the same as AOO and lose its difference. (In reply to comment #11) > ALG: Sorry, I have another question: Is the property "IsExcel3DChart" > needed? The value can be converted from percent to the absolute value in > sc/source/filter/excel/xichart.cxx line 2405, rPropSet.SetProperty( > EXC_CHPROP_3DHEIGHT, (sal_Int32)maData.mnRelHeight); before setting it. > Then, chart2/source/view/charttypes/PieChart.cxx line 425 > double fDepth = bIsExcel3DChart ? (this->getTransformedDepth()) * > n3DHeight /(2*100) : this->getTransformedDepth(); would not need to react > on the bool IsExcel3DChart and the standard line // double > fDepth = this->getTransformedDepth(); could be used unchanged. The > API value "3DHeight" would then not have two different units (absolute and > relative if excel), and thus two different meanings, but just a single, > explicit one. This allows to work with this value without always to have to > check "IsExcel3DChart", too. Also a minimal API is always better. So, is > the bool "IsExcel3DChart" needed...? Maybe I have overseen something, please > check. -- You are receiving this mail because: You are the assignee for the bug.