From 27fb7b2fa29e7fd3a4a85d96e4cbafe5a3345f25 Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Tue, 20 Feb 2024 08:36:35 +0100 Subject: [PATCH] fixed issue that last image is never shown in image8 widget - closes #376 --- README.md | 3 +++ src/src/Vis/Widgets/Basic/BasicImage8.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e30dcfc6..532ccae3 100644 --- a/README.md +++ b/README.md @@ -263,6 +263,9 @@ E.g., if it was used in a menu and the menu is red, the circle would be red. ### **WORK IN PROGRESS** --> ## Changelog +### **WORK IN PROGRESS** +* (foxriver76) fixed issue that last image is never shown in image8 widget + ### 2.9.32 (2024-02-16) * (foxriver76) implemented buttons to show or hide all views in views manager * (foxriver76) fixed issue with signals on RxWidgets diff --git a/src/src/Vis/Widgets/Basic/BasicImage8.tsx b/src/src/Vis/Widgets/Basic/BasicImage8.tsx index c80691d0..a5682974 100644 --- a/src/src/Vis/Widgets/Basic/BasicImage8.tsx +++ b/src/src/Vis/Widgets/Basic/BasicImage8.tsx @@ -77,7 +77,7 @@ export default class BasicImage8 extends VisRxWidget { const srcArr: string[] = []; - for (let i = 0; i < this.state.rxData.count; i++) { + for (let i = 0; i <= this.state.rxData.count; i++) { // @ts-expect-error check this if (this.state.rxData[`src_${i}`]) { // @ts-expect-error check this