From 202eb8c06a0b2454b9b2ab0314fc43620f011e16 Mon Sep 17 00:00:00 2001 From: "roman.artiukhin" Date: Thu, 27 Oct 2022 20:03:35 +0300 Subject: Fix wrong formatting in WPS Fixes FS#13354 and FS#12980 Change-Id: I4ec4cb57cfb64494e633d0bb92e733d92593c075 --- apps/gui/skin_engine/skin_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/gui/skin_engine') diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 49375829e6..3ff804263b 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c @@ -606,9 +606,9 @@ void write_line(struct screen *display, struct align_pos *format_align, char *center = format_align->center ?: ""; char *right = format_align->right ?: ""; - display->put_line(0, line, linedes, "$t$*s$t$*s$t", left, - center_xpos - left_width, center, - right_xpos - (center_xpos + center_width), right); + display->put_line(0, line, linedes, "$t$*s$t$*s$t", left_width == 0 ? "" : left , + center_xpos - left_width, center_width == 0 ? "" : center, + right_xpos - center_xpos - center_width, right_width == 0 ? "" : right); } } -- cgit v1.2.3