Bug 9031 fixed: Misalignment when using xstring with a matrix
[scilab.git] / scilab / modules / renderer / src / java / org / scilab / modules / renderer / JoGLView / legend / LegendDrawer.java
index 6198c89..8631f8d 100644 (file)
@@ -380,7 +380,7 @@ public class LegendDrawer {
         double normSpriteMargin = 0.0;
 
         if (nbValidLinks > 0) {
-            normSpriteMargin = (double) legendSpriteDrawer.getMargin() / (double) canvasHeight;
+            normSpriteMargin = (double) legendSpriteDrawer.getVMargin() / (double) canvasHeight;
         }
 
         lineVertexData[0] = (float) (legendCorner[0] + xOffset);