]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
JFreeChart rendering fix (Java7 bug).
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 4 Feb 2014 12:16:31 +0000 (12:16 +0000)
committerluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 4 Feb 2014 12:16:31 +0000 (12:16 +0000)
fixes #4693

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28768 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.jfreechart/src/org/simantics/jfreechart/chart/ChartComposite.java

index 68eaa94ff0d731a111ef8177bee19f70576fc2a1..dd5b069ab70bba6f07bf2ff034911b3f5b9285f6 100644 (file)
@@ -131,7 +131,16 @@ public class ChartComposite extends Composite {
                             frame.remove(panel);\r
                         composite.layout();\r
                         JFreeChart chart = (JFreeChart)getObject();\r
-                        panel = new ChartPanel(chart, false, true, true, true, true);\r
+                        //panel = new ChartPanel(chart, false, true, true, true, true);\r
+                        panel = new ChartPanel(chart,\r
+                                                      ChartPanel.DEFAULT_WIDTH,\r
+                                                      ChartPanel.DEFAULT_HEIGHT,\r
+                                                      ChartPanel.DEFAULT_MINIMUM_DRAW_WIDTH,\r
+                                                      ChartPanel.DEFAULT_MINIMUM_DRAW_HEIGHT,\r
+                                                      ChartPanel.DEFAULT_MAXIMUM_DRAW_WIDTH, \r
+                                                      ChartPanel.DEFAULT_MAXIMUM_DRAW_HEIGHT,\r
+                                                      false,\r
+                                                      false, true, true, true, true);\r
                         frame.add(panel);\r
 //                        frame.repaint();\r
                         frame.validate();\r