mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
When pasting a group of components that contain at least one "PCB Text"
instance, some of the other components get rendered mirrored while position the pasted components
This commit is contained in:
Binary file not shown.
@@ -118,12 +118,16 @@ public class PCBText extends AbstractComponent<Void> {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AffineTransform oldTx = g2d.getTransform();
|
||||||
|
|
||||||
// Flip horizontally
|
// Flip horizontally
|
||||||
AffineTransform tx = AffineTransform.getScaleInstance(-1, 1);
|
AffineTransform tx = AffineTransform.getScaleInstance(-1, 1);
|
||||||
tx.translate(-2 * x - textWidth, 0);
|
tx.translate(-2 * x - textWidth, 0);
|
||||||
g2d.transform(tx);
|
g2d.transform(tx);
|
||||||
|
|
||||||
g2d.drawString(text, x, y);
|
g2d.drawString(text, x, y);
|
||||||
|
|
||||||
|
g2d.setTransform(oldTx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -2674,6 +2674,10 @@
|
|||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Scan "library" folder for any additional JAR files that may contain more components</description>
|
<description>Scan "library" folder for any additional JAR files that may contain more components</description>
|
||||||
</org.diylc.appframework.update.Change>
|
</org.diylc.appframework.update.Change>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>BUG_FIX</changeType>
|
||||||
|
<description>When pasting a group of components that contain at least one "PCB Text" instance, some of the other components get rendered mirrored while position the pasted components</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>BUG_FIX</changeType>
|
<changeType>BUG_FIX</changeType>
|
||||||
<description>Some schematic symbols (transistors, potentiometer...) are not rendered properly when rotated and flipped at the same time</description>
|
<description>Some schematic symbols (transistors, potentiometer...) are not rendered properly when rotated and flipped at the same time</description>
|
||||||
|
|||||||
Reference in New Issue
Block a user