[Bf-blender-cvs] [ccad97c60b6] greasepencil-object: GPencil: Fix warnings in wrong string format
Antonio Vazquez
noreply at git.blender.org
Tue Sep 15 15:24:14 CEST 2020
Commit: ccad97c60b699134971a72f85cb079f07f832bd9
Author: Antonio Vazquez
Date: Tue Sep 15 15:22:29 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rBccad97c60b699134971a72f85cb079f07f832bd9
GPencil: Fix warnings in wrong string format
===================================================================
M source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
===================================================================
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
index 0a79ea4c2d0..7d03382961c 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
@@ -313,13 +313,13 @@ void GpencilExporterSVG::export_gpencil_layers(void)
sprintf(text, "#%d", shot_);
break;
case GP_EXPORT_TXT_FRAME:
- sprintf(text, "%0004d", cfra_);
+ sprintf(text, "%04d", cfra_);
break;
case GP_EXPORT_TXT_SHOT_FRAME:
- sprintf(text, "#%d/%0004d", shot_, cfra_);
+ sprintf(text, "#%d/%04d", shot_, cfra_);
break;
default:
- sprintf(text, "%0004d", cfra_);
+ sprintf(text, "%04d", cfra_);
break;
}
More information about the Bf-blender-cvs
mailing list