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 E9ECBD585 for ; Fri, 10 Aug 2012 15:44:11 +0000 (UTC) Received: (qmail 91228 invoked by uid 500); 10 Aug 2012 15:44:11 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 91195 invoked by uid 500); 10 Aug 2012 15:44:11 -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 91185 invoked by uid 99); 10 Aug 2012 15:44:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2012 15:44:11 +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; Fri, 10 Aug 2012 15:44:09 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id 65D5F4080; Fri, 10 Aug 2012 15:43:48 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: [Bug 120530] in draw:transform value rotate the angles are treated as rad but ODF specifies deg Date: Fri, 10 Aug 2012 15:43:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: drawing X-Bugzilla-Component: code X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Armin.Le.Grand@me.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ooo-issues@incubator.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: cc 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=120530 Armin Le Grand changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Armin.Le.Grand@me.com --- Comment #1 from Armin Le Grand --- ALG: The description is wrong, indeed rad is used (0 .. 2pi) which is related closest to draw:transform in it's sense as a transformation matrix. the 'rotate(..)' statement is used for better readability, only. More bad: Just checked, rect with 45deg in UI (thus, rotated left) saved, gives 'rotate (0.7853981633973)'. When decomposing the matrix (which is not written) you would get -0.78 which would be mathematically positive in the screen coordinate system. In short: the API and ODF error is by purpose used here, too, see xmloff/source/draw/xexptra.cxx lines 664 ff (#i78696#). Probably for consistency (can't remember completely) to be able to use the API object rotation directly. See xmloff/source/draw/shapeexport2.cxx ln 196 where the value coming from a matrix decmopose (and being correct, mathematically positive) is mirrored before export. Thus, 'rotate(..)' from draw:transform of 19.228 is: - in rad - negative oriented Where the angle contained evtl. in 'matrix(..)' from draw:transform of 19.228 is: - in the units you get when decomposing it - positive oriented -- You are receiving this mail because: You are the assignee for the bug.