Skip to content

Commit 4e3d8ad

Browse files
Fix missing PIC in NBGL Layout tap action text
1 parent 0c6c078 commit 4e3d8ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib_nbgl/src/nbgl_layout.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,7 @@ nbgl_layout_t *nbgl_layoutGet(const nbgl_layoutDescription_t *description)
11371137
// if a tap text is defined, make the container tapable and display this text in gray
11381138
if (description->tapActionText != NULL) {
11391139
layoutObj_t *obj;
1140+
const char *tapActionText = PIC(description->tapActionText);
11401141

11411142
obj = &layout->callbackObjPool[layout->nbUsedCallbackObjs];
11421143
layout->nbUsedCallbackObjs++;
@@ -1146,10 +1147,10 @@ nbgl_layout_t *nbgl_layoutGet(const nbgl_layoutDescription_t *description)
11461147
layout->container->obj.touchMask = (1 << TOUCHED);
11471148
layout->container->obj.touchId = WHOLE_SCREEN_ID;
11481149

1149-
if (strlen(description->tapActionText) > 0) {
1150+
if (strlen(tapActionText) > 0) {
11501151
nbgl_layoutUpFooter_t footerDesc;
11511152
footerDesc.type = UP_FOOTER_TEXT;
1152-
footerDesc.text.text = PIC(description->tapActionText);
1153+
footerDesc.text.text = tapActionText;
11531154
footerDesc.text.token = description->tapActionToken;
11541155
footerDesc.text.tuneId = description->tapTuneId;
11551156
nbgl_layoutAddUpFooter((nbgl_layout_t *) layout, &footerDesc);

0 commit comments

Comments
 (0)