We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe59394 + 7e26915 commit 74b3fdeCopy full SHA for 74b3fde
src/canvas_items/CanvasItemSequence.vala
@@ -29,12 +29,22 @@ public class CanvasItemSequence : CanvasItem {
29
30
private int _font_size;
31
private bool _recalc_font_size = true;
32
+ private int _seq_num;
33
- public int seq_num { get; set; default = _next_seq_num++; }
34
+ public int seq_num {
35
+ get {
36
+ return( _seq_num );
37
+ }
38
+ set {
39
+ _seq_num = value;
40
+ _next_seq_num = value + 1;
41
42
43
44
/* Constructor */
45
public CanvasItemSequence( Canvas canvas, CanvasItemProperties props ) {
46
base( CanvasItemType.SEQUENCE, canvas, props );
47
+ seq_num = _next_seq_num;
48
create_points();
49
}
50
0 commit comments