diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-16 01:23:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-16 01:23:07 +0300 |
commit | 73dd9c4d34aec6169ecac180429ec009124537a9 (patch) | |
tree | b385dcf19ee77f284a37a179d0aedf4735e156ab | |
parent | 351f537fa832c50971454af304a071c096427e71 (diff) |
Fix string formatting, fall through attr
-rw-r--r-- | source/blender/editors/gpencil/gpencil_primitive.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c index 0e4f9558842..f067ff167fc 100644 --- a/source/blender/editors/gpencil/gpencil_primitive.c +++ b/source/blender/editors/gpencil/gpencil_primitive.c @@ -415,26 +415,26 @@ static void gpencil_primitive_status_indicators(bContext *C, tGPDprimitive *tgpi else { if (tgpi->flag == IN_PROGRESS) { BLI_snprintf( - status_str, sizeof(status_str), "%s: %d (%d, %d) (%d, %d)", msg_str, (int)tgpi->tot_edges, - tgpi->start[0], tgpi->start[1], tgpi->end[0], tgpi->end[1]); + status_str, sizeof(status_str), "%s: %d (%d, %d) (%d, %d)", msg_str, tgpi->tot_edges, + (int)tgpi->start[0], (int)tgpi->start[1], (int)tgpi->end[0], (int)tgpi->end[1]); } else { BLI_snprintf( - status_str, sizeof(status_str), "%s: %d (%d, %d)", msg_str, (int)tgpi->tot_edges, - tgpi->end[0], tgpi->end[1]); + status_str, sizeof(status_str), "%s: %d (%d, %d)", msg_str, tgpi->tot_edges, + (int)tgpi->end[0], (int)tgpi->end[1]); } } } else { if (tgpi->flag == IN_PROGRESS) { BLI_snprintf( - status_str, sizeof(status_str), "%s: %d (%d, %d) (%d, %d)", msg_str, (int)tgpi->tot_edges, - tgpi->start[0], tgpi->start[1], tgpi->end[0], tgpi->end[1]); + status_str, sizeof(status_str), "%s: %d (%d, %d) (%d, %d)", msg_str, tgpi->tot_edges, + (int)tgpi->start[0], (int)tgpi->start[1], (int)tgpi->end[0], (int)tgpi->end[1]); } else { BLI_snprintf( - status_str, sizeof(status_str), "%s: (%d, %d)", msg_str, - tgpi->end[0], tgpi->end[1]); + status_str, sizeof(status_str), "%s: (%d, %d)", msg_str, + (int)tgpi->end[0], (int)tgpi->end[1]); } } ED_workspace_status_text(C, status_str); @@ -1366,6 +1366,7 @@ static int gpencil_primitive_modal(bContext *C, wmOperator *op, const wmEvent *e /* done! */ return OPERATOR_FINISHED; } + ATTR_FALLTHROUGH; } case ESCKEY: { |