Mercurial > octave-nkf
comparison src/graphics.cc @ 7378:3771971e8891
[project @ 2008-01-15 07:40:23 by jwe]
author | jwe |
---|---|
date | Tue, 15 Jan 2008 07:40:23 +0000 |
parents | f350da755600 |
children | a78c7bccda91 |
comparison
equal
deleted
inserted
replaced
7377:46b58515067d | 7378:3771971e8891 |
---|---|
1068 { | 1068 { |
1069 if (i != k) | 1069 if (i != k) |
1070 new_kids(j++) = children(i); | 1070 new_kids(j++) = children(i); |
1071 } | 1071 } |
1072 children = new_kids; | 1072 children = new_kids; |
1073 mark_modified (); | |
1073 } | 1074 } |
1074 } | 1075 } |
1075 | 1076 |
1076 void | 1077 void |
1077 base_properties::set_parent (const octave_value& val) | 1078 base_properties::set_parent (const octave_value& val) |
1143 // --------------------------------------------------------------------- | 1144 // --------------------------------------------------------------------- |
1144 | 1145 |
1145 void | 1146 void |
1146 root_figure::properties::set_currentfigure (const octave_value& v) | 1147 root_figure::properties::set_currentfigure (const octave_value& v) |
1147 { | 1148 { |
1148 graphics_handle val (v.double_value ()); | 1149 graphics_handle val (v); |
1149 | 1150 |
1150 if (error_state) | 1151 if (error_state) |
1151 return; | 1152 return; |
1152 | 1153 |
1153 if (xisnan (val.value ()) || is_handle (val)) | 1154 if (xisnan (val.value ()) || is_handle (val)) |
1166 // --------------------------------------------------------------------- | 1167 // --------------------------------------------------------------------- |
1167 | 1168 |
1168 void | 1169 void |
1169 figure::properties::set_currentaxes (const octave_value& v) | 1170 figure::properties::set_currentaxes (const octave_value& v) |
1170 { | 1171 { |
1171 graphics_handle val (v.double_value ()); | 1172 graphics_handle val (v); |
1172 | 1173 |
1173 if (error_state) | 1174 if (error_state) |
1174 return; | 1175 return; |
1175 | 1176 |
1176 if (xisnan (val.value ()) || is_handle (val)) | 1177 if (xisnan (val.value ()) || is_handle (val)) |