Commit 241335ce authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

gdiplus: Remove redundant not-NULL checks (coccinellery).

parent 6a6376cd
...@@ -1088,13 +1088,13 @@ GpStatus WINGDIPAPI GdipAddPathString(GpPath* path, GDIPCONST WCHAR* string, INT ...@@ -1088,13 +1088,13 @@ GpStatus WINGDIPAPI GdipAddPathString(GpPath* path, GDIPCONST WCHAR* string, INT
heap_free(backup); heap_free(backup);
return status; return status;
} }
if (format && format->line_align == StringAlignmentCenter && layoutRect->Y + args.maxY < layoutRect->Height) if (format->line_align == StringAlignmentCenter && layoutRect->Y + args.maxY < layoutRect->Height)
{ {
float inc = layoutRect->Height + layoutRect->Y - args.maxY; float inc = layoutRect->Height + layoutRect->Y - args.maxY;
inc /= 2; inc /= 2;
for (i = backup->pathdata.Count; i < path->pathdata.Count; ++i) for (i = backup->pathdata.Count; i < path->pathdata.Count; ++i)
path->pathdata.Points[i].Y += inc; path->pathdata.Points[i].Y += inc;
} else if (format && format->line_align == StringAlignmentFar) { } else if (format->line_align == StringAlignmentFar) {
float inc = layoutRect->Height + layoutRect->Y - args.maxY; float inc = layoutRect->Height + layoutRect->Y - args.maxY;
for (i = backup->pathdata.Count; i < path->pathdata.Count; ++i) for (i = backup->pathdata.Count; i < path->pathdata.Count; ++i)
path->pathdata.Points[i].Y += inc; path->pathdata.Points[i].Y += inc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment