Skip to content

Commit

Permalink
parser.[ch] removed from CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-niklaus committed Mar 19, 2024
1 parent 5385d7b commit 1de33fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ set(sources
src/callbacks.h
src/config.c
src/config.h
src/parser.c
src/parser.h
src/drawing.c
src/drawing.h
src/main.c
Expand Down
2 changes: 1 addition & 1 deletion src/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ gboolean on_motion (GtkWidget *win,
if (type == GROMIT_LINE)
{
draw_line (data, ev->device, devdata->lastx, devdata->lasty, ev->x, ev->y);
if (devdata->cur_context->arrowsize > 0)
if (devdata->cur_context->arrowsize > 0.0)
{
GromitArrowType atype = devdata->cur_context->arrow_type;
gint width = devdata->cur_context->arrowsize * devdata->cur_context->width / 2;
Expand Down
5 changes: 2 additions & 3 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ gboolean parse_tool(GromitData *data, GScanner *scanner, GromitPaintContext *sty
}
else
{
g_printerr ("Expected Tool-definition or name of template tool\n");
g_printerr ("Expected tool definition or name of template tool\n");
goto cleanup;
}
return TRUE;
Expand All @@ -235,7 +235,6 @@ gboolean parse_tool(GromitData *data, GScanner *scanner, GromitPaintContext *sty
if (color_allocated)
{
g_free(style->paint_color);
g_printerr("parse_tool: free color @ %p\n", style->paint_color);
style->paint_color = NULL;
}
return FALSE;
Expand Down Expand Up @@ -279,7 +278,7 @@ ToolAttribute parse_attribute(GScanner *scanner, GromitPaintContext *style)
{
gfloat v = parse_float(scanner, "Missing arrowsize");
if (isnan(v)) return SYM_ERROR;
style->arrowsize = v + 0.5;
style->arrowsize = v;
}
else if (id == SYM_ARROWTYPE)
{
Expand Down

0 comments on commit 1de33fb

Please sign in to comment.