Skip to content

Commit

Permalink
Fix wrong formatting in WPS
Browse files Browse the repository at this point in the history
Fixes FS#13354 and FS#12980

Change-Id: I4ec4cb57cfb64494e633d0bb92e733d92593c075
  • Loading branch information
bahusoid authored and amachronic committed Oct 27, 2022
1 parent 4b7b7a0 commit 202eb8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/gui/skin_engine/skin_display.c
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 202eb8c

Please sign in to comment.