File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -792,7 +792,10 @@ public class DrawArea : Gtk.DrawingArea {
792
792
793
793
/* Make this initial node the current node */
794
794
set_current_node( n );
795
- set_node_mode( n, NodeMode . EDITABLE , false );
795
+ Idle . add(() = > {
796
+ set_node_mode( n, NodeMode . EDITABLE , false );
797
+ return ( false );
798
+ });
796
799
797
800
/* Redraw the canvas */
798
801
queue_draw();
Original file line number Diff line number Diff line change @@ -262,12 +262,10 @@ public class ExportText : Export {
262
262
}
263
263
264
264
var current = da. get_current_node();
265
- if ( current != null ) {
266
- if ( replace ) {
267
- da. replace_node( current, stack. index( 0 ). node );
268
- } else {
269
- parent_node( da, stack. index( 0 ). node, current );
270
- }
265
+ if ( (current != null ) && replace ) {
266
+ da. replace_node( current, stack. index( 0 ). node );
267
+ } else {
268
+ parent_node( da, stack. index( 0 ). node, current );
271
269
}
272
270
273
271
if ( nodes != null ) {
You can’t perform that action at this time.
0 commit comments