Rotated European resistor exported incorrectly

Issue #42 open
Bart H created an issue

When a European resistor symbol is exported to LaTeX, its rectangle is not rotated. See attached screenshot.

This is caused by the fact that the myGraphicsItemGroup of the symbol has the right transform property, but its children do not inherit this property. This means that in components.py:342, self.transform().m21() and self.transform().m11() will always return 0.0 and 1.0 respectively for the rectangle.

Comments (2)

  1. Siddharth Shekar repo owner

    Potentially fix #42

    When part of a group, items such as rectangles did not possess any transform information since this was part of the parent group. Using sceneTransform instead of transform allows us to get the correct transform matrix.

    → <<cset e1597c3e0e0f>>

  2. Siddharth Shekar repo owner
    • changed status to open

    Hi Bart,

    Sorry for the delayed response on this issue. Could you try out the fix I've pushed and let me know if it works for you? I haven't tested the TEX export very much so there could be quite a few bugs lurking around.

  3. Log in to comment