record_info: fix item offsets

Origin commit data
------------------
Commit: 3c7f99c053
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-01-21 (Fri, 21 Jan 2022)
This commit is contained in:
2022-01-21 23:44:35 +01:00
committed by vanhofen
parent 787b6493f0
commit 0ef7810ebf

View File

@@ -131,12 +131,12 @@ void CRecInfo::init()
rv_rec_img = new CComponentsPicture(OFFSET_INNER_MIN, 0, rec_icon, this); rv_rec_img = new CComponentsPicture(OFFSET_INNER_MIN, 0, rec_icon, this);
w_rec_img = rv_rec_img->getWidth(); w_rec_img = rv_rec_img->getWidth();
h_rec_img = rv_rec_img->getHeight(); h_rec_img = rv_rec_img->getHeight();
w_icon_space += w_rec_img; w_icon_space += w_rec_img + OFFSET_INNER_MIN;
} }
if (!ts_icon.empty()) if (!ts_icon.empty())
{ {
rv_ts_img = new CComponentsPicture(w_icon_space + OFFSET_INNER_MIN, 0, ts_icon, this); rv_ts_img = new CComponentsPicture(w_icon_space, 0, ts_icon, this);
w_ts_img = rv_ts_img->getWidth(); w_ts_img = rv_ts_img->getWidth();
h_ts_img = rv_ts_img->getHeight(); h_ts_img = rv_ts_img->getHeight();
w_icon_space += w_ts_img; w_icon_space += w_ts_img;