Commit cafd5a38 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed noselect bug when line is selected and one clicks on a blank canvas...

fixed noselect bug when line is selected and one clicks on a blank canvas which should also deselect selected line. also made pd_extrapath struct global as part of s_stuff.h so that ggee/image can use dynamic descriptors for retrieving of files (.e.g @pd_extra is translated to the pd's system-wide location of the extra/ folder)
parent 17ae262b
......@@ -2873,7 +2873,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
canvas_setcursor(x, CURSOR_EDITMODE_NOTHING);
if (doit)
{
if (!shiftmod && x->gl_editor->e_selection) {
if (!shiftmod && (x->gl_editor->e_selection || x->gl_editor->e_selectedline)) {
//t_undo_redo_sel *buf = (t_undo_redo_sel *)getbytes(sizeof(*buf));
//buf->u_undo = (t_undo_sel *)canvas_undo_set_selection(x);
......
......@@ -213,8 +213,6 @@ char *namelist_get(t_namelist *namelist, int n)
return (nl ? nl->nl_string : 0);
}
static t_namelist *pd_extrapath;
int sys_usestdpath = 1;
void sys_setextrapath(const char *p)
......
......@@ -15,6 +15,7 @@ typedef struct _namelist /* element in a linked list of stored strings */
char *nl_string; /* the string */
} t_namelist;
t_namelist *pd_extrapath;
t_namelist *namelist_append(t_namelist *listwas, const char *s, int allowdup);
t_namelist *namelist_append_files(t_namelist *listwas, const char *s);
void namelist_free(t_namelist *listwas);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment