bugfix for graphic clip

This commit is contained in:
wyq 2024-03-19 10:57:50 +08:00
parent b452341b6d
commit 72fb07ad15
2 changed files with 4 additions and 1 deletions

View File

@ -310,6 +310,9 @@ public class Plot2D extends AbstractPlot2D {
if (graphic.isClip()) {
GeneralPath clipPath = getClipPath(graphic.getClipGraphic(), area);
g.setClip(clipPath);
if (oldClip != null) {
g.clip(oldClip);
}
}
ColorBreak cb = graphic.getLegend();

View File

@ -36,5 +36,5 @@
</Font>
<LookFeel DockWindowDecorated="true" LafDecorated="true" Name="FlatDarkLaf"/>
<Figure DoubleBuffering="true"/>
<Startup MainFormLocation="-7,-7" MainFormSize="1293,685"/>
<Startup MainFormLocation="-7,0" MainFormSize="1363,778"/>
</MeteoInfo>