forked from enlightenment/efl
efl_ui_pager: add missing NULL checks
This commit is contained in:
parent
1934afb47d
commit
737ef183bb
|
@ -17,7 +17,9 @@ _efl_ui_pager_update(Efl_Ui_Pager_Data *pd)
|
||||||
{
|
{
|
||||||
if (pd->cnt == 0) return;
|
if (pd->cnt == 0) return;
|
||||||
|
|
||||||
|
if (pd->transition)
|
||||||
efl_page_transition_update(pd->transition, pd->curr.pos);
|
efl_page_transition_update(pd->transition, pd->curr.pos);
|
||||||
|
|
||||||
if (pd->indicator)
|
if (pd->indicator)
|
||||||
efl_page_indicator_update(pd->indicator, pd->curr.pos);
|
efl_page_indicator_update(pd->indicator, pd->curr.pos);
|
||||||
}
|
}
|
||||||
|
@ -732,6 +734,7 @@ _efl_ui_pager_padding_set(Eo *obj EINA_UNUSED,
|
||||||
{
|
{
|
||||||
pd->page_spec.padding = padding;
|
pd->page_spec.padding = padding;
|
||||||
|
|
||||||
|
if (pd->transition)
|
||||||
efl_page_transition_padding_size_set(pd->transition, padding);
|
efl_page_transition_padding_size_set(pd->transition, padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue