* Bug #14587 fixed - Datatip textbox wrong clipping when loaded from *.scg file. 45/18245/5
Caio SOUZA [Tue, 14 Jun 2016 18:24:34 +0000 (15:24 -0300)]
Change-Id: Ica2c793a4eee7219611b362bf74ad64484c50a68

scilab/CHANGES.md
scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/datatip/Datatip.java

index b96678d..3cd8fa9 100644 (file)
@@ -222,7 +222,8 @@ Bug Fixes
 
 ### In 6.0.0:
 
-
+* [Bug #14587](http://bugzilla.scilab.org/show_bug.cgi?id=14587) fixed - Datatip textbox wrong clipping when loaded from *.scg file.
 
 ### In 6.0.0 beta-2 and earlier:
 
index c201267..3e8aad3 100755 (executable)
@@ -32,6 +32,7 @@ import java.text.DecimalFormatSymbols;
 import org.scilab.forge.scirenderer.ruler.graduations.UserDefinedFormat;
 
 import org.scilab.modules.action_binding.InterpreterManagement;
+import static org.scilab.modules.graphic_objects.graphicObject.ClippableProperty.ClipStateType;
 import org.scilab.modules.graphic_objects.PolylineData;
 import org.scilab.modules.graphic_objects.graphicController.GraphicController;
 import org.scilab.modules.graphic_objects.graphicObject.GraphicObjectProperties;
@@ -121,7 +122,7 @@ public class Datatip extends Text {
         setLineMode(true);
         setFillMode(true);
         setBackground(-2);
-        setClipState(1);
+        setClipStateAsEnum(ClipStateType.OFF);
 
         setMarkMode(true);
         setMarkSize(8);