Allow mutiplie axes within frames.
[scilab.git] / scilab / modules / renderer / src / java / org / scilab / modules / renderer / JoGLView / axes / AxesDrawer.java
index bb7cbb4..78d02b4 100644 (file)
@@ -862,7 +862,7 @@ public class AxesDrawer {
      * @param axes the given Axes.
      */
     public static void updateAxesTransformation(Axes axes) {
-        DrawerVisitor currentVisitor = DrawerVisitor.getVisitor(axes.getParentFigure());
+        DrawerVisitor currentVisitor = DrawerVisitor.getVisitor(axes.getParentFrameOrFigure());
         AxesDrawer axesDrawer = currentVisitor.getAxesDrawer();
         Dimension canvasDimension = currentVisitor.getCanvas().getDimension();