From f039e15182785d36bc28463456ad197bd1558a9c Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 6 Jul 2015 23:07:39 +0300 Subject: [PATCH] dwrite: Remove a couple of useless checks. --- dlls/dwrite/layout.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c index 1fb49c1b70b..d91da0db5e4 100644 --- a/dlls/dwrite/layout.c +++ b/dlls/dwrite/layout.c @@ -1389,16 +1389,12 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout) while (erun && erun->line == line) { erun->origin_y = origin_y; erun = layout_get_next_erun(layout, erun); - if (!erun) - break; } /* Same for inline runs */ while (inrun && inrun->line == line) { inrun->origin_y = origin_y; inrun = layout_get_next_inline_run(layout, inrun); - if (!inrun) - break; } layout->metrics.height += layout->lines[line].height;