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:
Branislav Stojkovic
2019-03-22 22:29:05 +01:00
parent 48266d3b27
commit b46f46aa99
5 changed files with 10 additions and 2 deletions
Binary file not shown.
@@ -116,14 +116,18 @@ public class PCBText extends AbstractComponent<Void> {
case _270: case _270:
g2d.rotate(Math.PI * 3 / 2, point.x, point.y); g2d.rotate(Math.PI * 3 / 2, point.x, point.y);
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.
+4
View File
@@ -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>