s[i+2] = ' ';
}
}
+ if ( g_ascii_iscntrl (s[i]) ) {
+ // Replace any control characters (i.e. mainly for tabs) with a space
+ s[i] = ' ';
+ }
}
/* now try reading coordinates */
if ( ! sel )
return;
- vik_treeview_get_selected_iter ( sel->vt, &iter );
+ if ( !vik_treeview_get_selected_iter ( sel->vt, &iter ) )
+ return;
layer_type = sel->type;
// Since we intercept copy and paste keyboard operations, this is called even when a cell is being edited