From 31d2ee9bf77bb991ea4779c47379b2cee84b27ed Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 6 Mar 2012 18:40:15 +0000 Subject: style cleanup, brackets in else/if, some indentation. --- source/blender/blenkernel/intern/font.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'source/blender/blenkernel/intern/font.c') diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index ba23b2123d6..4cf47906b64 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -165,8 +165,7 @@ static VFontData *vfont_get_data(Main *bmain, VFont *vfont) pf= vfont->packedfile; // We need to copy a tmp font to memory unless it is already there - if(!tmpfnt) - { + if(!tmpfnt) { tpf= MEM_callocN(sizeof(*tpf), "PackedFile"); tpf->data= MEM_mallocN(pf->size, "packFile"); tpf->size= pf->size; @@ -178,11 +177,11 @@ static VFontData *vfont_get_data(Main *bmain, VFont *vfont) tmpfnt->vfont= vfont; BLI_addtail(&ttfdata, tmpfnt); } - } else { + } + else { pf= newPackedFile(NULL, vfont->name, ID_BLEND_PATH(bmain, &vfont->id)); - - if(!tmpfnt) - { + + if (!tmpfnt) { tpf= newPackedFile(NULL, vfont->name, ID_BLEND_PATH(bmain, &vfont->id)); // Add temporary packed file to globals @@ -257,8 +256,7 @@ VFont *load_vfont(Main *bmain, const char *name) } // Do not add FO_BUILTIN_NAME to temporary listbase - if(strcmp(filename, FO_BUILTIN_NAME)) - { + if (strcmp(filename, FO_BUILTIN_NAME)) { tmpfnt= (struct TmpFont *) MEM_callocN(sizeof(struct TmpFont), "temp_font"); tmpfnt->pf= tpf; tmpfnt->vfont= vfont; -- cgit v1.2.3