From 32ee36eb22a05acdedd65aa8bf94fad9e381e7a1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 15 Jun 2018 19:29:01 -0400 Subject: [PATCH] Fixed some of the technical glitches. --- windows/tabledraw.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/windows/tabledraw.cpp b/windows/tabledraw.cpp index 3afa4370..3344f8a2 100644 --- a/windows/tabledraw.cpp +++ b/windows/tabledraw.cpp @@ -44,6 +44,11 @@ static HRESULT computeAndDrawTextRect(struct drawState *s) r = s->subitemLabel; if (!s->hasText && !s->hasImage) r = s->subitemBounds; + else if (!s->hasImage && s->iSubItem != 0) + // By default, this will include images; we're not drawing + // images, so we will manually draw over the image area. + // There's a second part to this; see below. + r.left = s->subitemBounds.left; if (FillRect(s->dc, &r, s->bgBrush) == 0) { logLastError(L"FillRect()");