blob: 6659773965677f99248fd7eadd1c05af182205e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// <-- Non-regression test for bug 1786 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1786
//
// <-- Short Description -->
// Scilab 4.0-RC1
// Handle Label : rotation of the text
//
// Changing field Label.auto_rotation to off does not causes the rotation of the
// text. To force the rotation, it is necessary to re-affect the value of
// Label.font_angle.
//
// jacques-Deric
// Copyright INRIA
// Scilab Project - Pierre MARECHAL
// Copyright INRIA 2005
// Date : 6 fevrier 2005
hf = scf (1);
ha = gca ();
hlt = ha.title;
hlt.text = "Titre/Title";
test1 = (hlt.auto_rotation == "on");
test2 = (hlt.auto_position == "on");
hlt.font_angle = 180;
test3 = (hlt.auto_rotation == "off");
hlt.position = [0.5,0.5];;
test4 = (hlt.auto_position == "off");
if( test1 & test2 & test3 & test4 ) then
affich_result(%T,1786);
else
affich_result(%F,1786);
end
|