Gtk2: do not draw text background if colormap isn't assigned. Second part of issue #21863

git-svn-id: trunk@37031 -
This commit is contained in:
zeljko 2012-04-26 08:03:59 +00:00
parent d335785ef6
commit 5c73765c8b

View File

@ -9650,7 +9650,8 @@ begin
EnsureGCColor(DC, dccCurrentTextColor, True, False);
BackGroundColor := nil;
if (DevCtx.GDIObjects[gdiBrush] <> nil) and (DevCtx.BkMode = OPAQUE) then
if (DevCtx.GDIObjects[gdiBrush] <> nil) and (DevCtx.BkMode = OPAQUE) and
(DevCtx.CurrentBackColor.Colormap <> nil) then
begin
EnsureGCColor(DC, dccCurrentBackColor, DevCtx.GDIObjects[gdiBrush]^.GDIBrushFill = GDK_SOLID, True);
BackGroundColor := @DevCtx.CurrentBackColor.Color;