Skip to content

Commit efbcd34

Browse files
committed
main: print options of FRAME tool
1 parent 9deeb9e commit efbcd34

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void paint_context_print (gchar *name,
108108
case GROMIT_RECT:
109109
g_printerr ("Rect, "); break;
110110
case GROMIT_FRAME:
111-
g_printerr ("Frame, "); break;
111+
g_printerr ("Frame, "); break;
112112
case GROMIT_SMOOTH:
113113
g_printerr ("Smooth, "); break;
114114
case GROMIT_ORTHOGONAL:
@@ -139,7 +139,7 @@ void paint_context_print (gchar *name,
139139
break;
140140
}
141141
}
142-
if (context->type == GROMIT_SMOOTH || context->type == GROMIT_ORTHOGONAL || context->type == GROMIT_FRAME)
142+
if (context->type == GROMIT_SMOOTH || context->type == GROMIT_ORTHOGONAL)
143143
{
144144
g_printerr(" simplify: %u, ", context->simplify);
145145
if (context->snapdist > 0)
@@ -150,6 +150,11 @@ void paint_context_print (gchar *name,
150150
g_printerr(" radius: %u, minlen: %u, maxangle: %u ",
151151
context->radius, context->minlen, context->maxangle);
152152
}
153+
if (context->type == GROMIT_FRAME)
154+
{
155+
g_printerr(" xlength: %u, ylength: %u, radius: %u, fillcolor: %u ",
156+
context->xlength, context->ylength, context->radius, context->fill_color);
157+
}
153158
g_printerr ("color: %s\n", gdk_rgba_to_string(context->paint_color));
154159
}
155160

0 commit comments

Comments
 (0)