]> granicus.if.org Git - graphviz/commitdiff
gdiplusgen_textspan: squash -Wmisleading-indentation warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Nov 2021 16:03:26 +0000 (08:03 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 24 Nov 2021 15:47:40 +0000 (07:47 -0800)
plugin/gdiplus/gvrender_gdiplus.cpp

index 25ddee1e52e271d0e6e87f1fe6a4033aafe79835..440647a6ca6b44eff8387d9adad745eebd95c84b 100644 (file)
@@ -176,8 +176,8 @@ static void gdiplusgen_textspan(GVJ_t *job, pointf p, textspan_t *span)
        else
                layout = new Layout(span->font->name, span->font->size, span->str);
 
-               /* draw the text */
-               SolidBrush brush(Color(job->obj->pencolor.u.rgba [3], job->obj->pencolor.u.rgba [0], job->obj->pencolor.u.rgba [1], job->obj->pencolor.u.rgba [2]));
+       /* draw the text */
+       SolidBrush brush(Color(job->obj->pencolor.u.rgba [3], job->obj->pencolor.u.rgba [0], job->obj->pencolor.u.rgba [1], job->obj->pencolor.u.rgba [2]));
        context->DrawString(&layout->text[0], layout->text.size(), layout->font.get(), PointF(p.x, -p.y), GetGenericTypographic(), &brush);
        
        if (span->free_layout != &gdiplus_free_layout)