Skip to content

Commit 1de33fb

Browse files
parser.[ch] removed from CMakeLists.txt
1 parent 5385d7b commit 1de33fb

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ set(sources
5252
src/callbacks.h
5353
src/config.c
5454
src/config.h
55-
src/parser.c
56-
src/parser.h
5755
src/drawing.c
5856
src/drawing.h
5957
src/main.c

src/callbacks.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ gboolean on_motion (GtkWidget *win,
403403
if (type == GROMIT_LINE)
404404
{
405405
draw_line (data, ev->device, devdata->lastx, devdata->lasty, ev->x, ev->y);
406-
if (devdata->cur_context->arrowsize > 0)
406+
if (devdata->cur_context->arrowsize > 0.0)
407407
{
408408
GromitArrowType atype = devdata->cur_context->arrow_type;
409409
gint width = devdata->cur_context->arrowsize * devdata->cur_context->width / 2;

src/config.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ gboolean parse_tool(GromitData *data, GScanner *scanner, GromitPaintContext *sty
226226
}
227227
else
228228
{
229-
g_printerr ("Expected Tool-definition or name of template tool\n");
229+
g_printerr ("Expected tool definition or name of template tool\n");
230230
goto cleanup;
231231
}
232232
return TRUE;
@@ -235,7 +235,6 @@ gboolean parse_tool(GromitData *data, GScanner *scanner, GromitPaintContext *sty
235235
if (color_allocated)
236236
{
237237
g_free(style->paint_color);
238-
g_printerr("parse_tool: free color @ %p\n", style->paint_color);
239238
style->paint_color = NULL;
240239
}
241240
return FALSE;
@@ -279,7 +278,7 @@ ToolAttribute parse_attribute(GScanner *scanner, GromitPaintContext *style)
279278
{
280279
gfloat v = parse_float(scanner, "Missing arrowsize");
281280
if (isnan(v)) return SYM_ERROR;
282-
style->arrowsize = v + 0.5;
281+
style->arrowsize = v;
283282
}
284283
else if (id == SYM_ARROWTYPE)
285284
{

0 commit comments

Comments
 (0)