1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[Icon] Use horizontal align for x-align option.

Thx SardemFF7 for spotting this.
This commit is contained in:
Dave Davenport 2019-03-24 12:37:27 +01:00
parent 5b83b2ed23
commit 8d4b8ce5de

View file

@ -157,7 +157,7 @@ icon * icon_create ( widget *parent, const char *name )
}
b->yalign = rofi_theme_get_double ( WIDGET ( b ), "vertical-align", 0.5 );
b->yalign = MAX ( 0, MIN ( 1.0, b->yalign ) );
b->xalign = rofi_theme_get_double ( WIDGET ( b ), "vertical-align", 0.5 );
b->xalign = rofi_theme_get_double ( WIDGET ( b ), "horizontal-align", 0.5 );
b->xalign = MAX ( 0, MIN ( 1.0, b->xalign ) );
return b;