Skip to content

Commit d6fe97f

Browse files
committed
MacOS bug fix #8
1 parent b7e4403 commit d6fe97f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.idea/vcs.xml

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/com/tech/app/windows/panels/DrawPanel.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ public class DrawPanel extends JPanel {
3737
/* Variables d'agrandissement et zoom */
3838
public double scaleX = 1;
3939
public double scaleY = 1;
40-
public AffineTransform transform = AffineTransform.getScaleInstance(scaleX, scaleY);
40+
public AffineTransform transform;
4141

4242
public DrawPanel(JFrame frame, Model model) {
4343
this.frame = frame;
4444
this.model = model;
45+
this.transform = AffineTransform.getScaleInstance(scaleX, scaleY);
4546
this.setBorder(BorderFactory.createLineBorder(Color.BLACK, 5));
4647
}
4748

0 commit comments

Comments
 (0)