Commit a6e7cb81 authored by Morten Welinder's avatar Morten Welinder

sparse: fix ugly case of missing dereference.

parent 3e6c30c5
2010-07-09 Morten Welinder <terra@gnome.org>
* dialog-stf-fixed-page.c (calc_char_index): add missing
dereference.
2010-07-07 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* dialog-function-select.c (make_expr_example): use the suggested
* dialog-function-select.c (make_expr_example): use the suggested
format
2010-07-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
......
......@@ -96,7 +96,7 @@ calc_char_index (RenderData_t *renderdata, int col, int *dx)
pango_font_description_free (font_desc);
if (width < 1) width = 1;
ci = (dx < 0) ? 0 : (*dx + width / 2) / width;
ci = (*dx < 0) ? 0 : (*dx + width / 2) / width;
*dx -= ci * width;
return ci;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment