use "configure -cursor {}" instead of "configure -cursor arrow" to switch back mouse cursor to default when exiting graph

This commit is contained in:
stefan schippers 2022-12-31 10:22:41 +01:00
parent aa70d90c46
commit cee4d218e2
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ static int waves_selected(int event, KeySym key, int state, int button)
} }
} }
if(!is_inside) { if(!is_inside) {
tclvareval(xctx->top_path, ".drw configure -cursor arrow" , NULL); tclvareval(xctx->top_path, ".drw configure -cursor {}" , NULL);
if(xctx->graph_flags & 64) { if(xctx->graph_flags & 64) {
tcleval("graph_show_measure stop"); tcleval("graph_show_measure stop");
} }

View File

@ -778,7 +778,7 @@ void int_hash_free(Int_hashtable *hashtable)
int_hash_free_entry( table[i] ); int_hash_free_entry( table[i] );
table[i] = NULL; table[i] = NULL;
} }
if(hashtable->table) my_free(1575, &(hashtable->table)); my_free(1575, &(hashtable->table));
hashtable->size = 0; hashtable->size = 0;
} }
} }