forked from enlightenment/edi
editor: fix a strange crash in calculations
Seems that gutter was not always correct after eo_do
This commit is contained in:
parent
4da088b51c
commit
8d17e2710f
|
@ -214,7 +214,7 @@ _elm_code_widget_fill_gutter(Elm_Code_Widget *widget, Evas_Textgrid_Cell *cells,
|
||||||
Elm_Code_Widget_Data *pd;
|
Elm_Code_Widget_Data *pd;
|
||||||
|
|
||||||
pd = eo_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
|
pd = eo_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
|
||||||
eo_do(widget, gutter = elm_obj_code_widget_text_left_gutter_width_get());
|
gutter = elm_code_widget_text_left_gutter_width_get(widget);
|
||||||
|
|
||||||
evas_object_textgrid_size_get(pd->grid, &w, NULL);
|
evas_object_textgrid_size_get(pd->grid, &w, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue