From 7723071b005ad8038f47d77df75e35af399fa003 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 7 Feb 2021 17:18:35 +0100 Subject: [PATCH] infoviewer_bb.cpp: use calculated icon space intstead static value --- src/gui/infoviewer_bb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index 83ac29976..ed2e7cce7 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -787,7 +787,7 @@ void CInfoViewerBB::paint_ca_icon(int caid, const char *icon, int &icon_space_of } else { icon_space_offset += icon_sizeW[icon_map[caid].first]; px = endx - icon_space_offset; - icon_space_offset += 4; + icon_space_offset += icon_space; } if (px) {