<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hiho,</p>
    <p>sorry for the late answer :-)</p>
    <p>History: When doing deep change work quite some years ago, I did
      *not* realize that rot angle and shear angle were *mirrored* -
      sigh. This was probably historically the case due to the Y-Axis
      going down technically in OutDev's (right-handed), but handled in
      interactions and UI (aka visually) as going *up* (aka
      left-handed). Thus, the model data was using the UI orientation -
      sigh ;-( Since this was done everywhere it did not pop up as an
      error - until someone else tried to import the XML ODF stuff we
      write and read - and yes, the error was unnoticed forwarded to ODF
      format - sigh :-( You won't believe how surprised/shocked I was
      when I found out about it...<br>
    </p>
    <p>In aw080 I corrected this more or less everywhere internally -
      the SdrObjects were anyways in a state that the just had a
      B2DHomMatrix as geometric definition, thus this had to be correct
      (right-handed) in the model - we are not that far in the current
      core... Angles were flipped everywhere for UI and where APIs were
      involved - UNO API and ODF as far as needed.</p>
    <p>Luckily, the full ObjectTransform in ODF and UNO API *is* correct
      due to handing in/out a full Matrix in LinearAlgebra, thus
      right-handed and can be used for compatibility and preferred in
      the future - for the rest we'll have to keep that error alive as
      long as we won't get a new ODF format.</p>
    <p>BTW: Is there an official site to already claim these angles to
      change orientation for ODF1.4...? And is that claimed...?<br>
      At least it will be transformable by some XSLT between 1. and a
      potentially corrected 1.4.<br>
      That's not the case for the API, though ;-(</p>
    <p>HTH!<br>
    </p>
    <div class="moz-cite-prefix">On 06-Jan-20 14:35, Regina Henschel
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ed2f6149-d427-ee25-8ac1-246f8dbc5d8f@t-online.de">Hi
      all,
      <br>
      <br>
      the matrix, which is product by TRGetBaseGeometry and which is
      available as property "Transformation" in macros, is
      mathematically wrong, because the shear element has a wrong sign.
      What to do?
      <br>
      A) Convert the matrix into a mathematically correct one, where it
      is needed, e.g. in case it will be multiplied by another matrix.
      <br>
      B) Change core to use the mathematically correct matrix.
      <br>
      C) Other idea?
      <br>
      <br>
      I've used approach A for now. See
<a class="moz-txt-link-freetext" href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=f44140bebb9c493d97ba5aef26c9692c53a6b93f">https://cgit.freedesktop.org/libreoffice/core/commit/?id=f44140bebb9c493d97ba5aef26c9692c53a6b93f</a>
      and my new patch in
      <a class="moz-txt-link-freetext" href="https://gerrit.libreoffice.org/#/c/core/+/86244/">https://gerrit.libreoffice.org/#/c/core/+/86244/</a>
      <br>
      I think, because the property "Transformation" might be used by
      existing macros, it would not be good to change its content.
      Another reason is, that option B would require large changes (some
      work in Armins aw080), so that it should at least be accompanied
      by an expert developer.
      <br>
      <br>
      Before I continue, I want to know, whether you think it is OK to
      use option A.
      <br>
      <br>
      The attachment has an example to reproduce the problem.
      <br>
      <br>
      Kind regards
      <br>
      Regina
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/libreoffice">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
ALG (PGP Key: EE1C 4B3F E751 D8BC C485 DEC1 3C59 F953 D81C F4A2)</pre>
  </body>
</html>