efl_ui_layout: check theme version better

when we are having the version 1.23.99 we are preparing the release that
is going to be released with version 1.24. With this commit we can
declare theme versions to be for 1.24 which the version number is 1.23.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10891
This commit is contained in:
Marcel Hollerbach 2019-12-17 10:10:56 +01:00 committed by Cedric BAIL
parent 5537d58639
commit 1c0f72e4d3
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ _efl_ui_layout_base_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Layout_Data *sd)
}
if (!version)
{
snprintf(buf, sizeof(buf), "%d%d", EFL_VERSION_MAJOR, EFL_VERSION_MINOR);
snprintf(buf, sizeof(buf), "%d%d", EFL_VERSION_MAJOR, EFL_VERSION_MINOR + (EFL_VERSION_MICRO == 99 ? 1 : 0));
errno = 0;
version = strtoul(buf, NULL, 10);
if (errno)