if (cursor->element != NULL)
if (cursor->enabled && cursor->element != NULL)
default_cursor_handler(GtkMathView* math_view, GdkDrawable* drawable,		       GtkMathViewDefaultCursorDecorator* cursor){  g_return_if_fail(math_view != NULL);  g_return_if_fail(drawable != NULL);  g_return_if_fail(cursor != NULL);  if (cursor->element != NULL)    {      GtkMathViewPoint focus_orig;      GtkMathViewBoundingBox focus_box;      if (!GTKMATHVIEW_METHOD_NAME(get_element_extents)(math_view, cursor->element, &focus_orig, &focus_box))	return;      if (cursor->draw_focus)	gtk_paint_focus(GTK_WIDGET(math_view)->style,			drawable,			GTK_STATE_NORMAL,			NULL,			GTK_WIDGET(math_view),			"?",			focus_orig.x,			focus_orig.y - focus_box.height,			focus_box.width,			focus_box.height + focus_box.depth);       if (cursor->index >= 0)	{	  GdkRectangle crect;	  GtkMathViewPoint char_orig;	  GtkMathViewBoundingBox char_box;	  if (cursor->char_index &&	      GTKMATHVIEW_METHOD_NAME(get_char_extents)(math_view, cursor->element, cursor->index,							&char_orig, &char_box))	    crect.x = char_orig.x;	  else	    {	      crect.x = focus_orig.x;	      if (cursor->index > 0) crect.x += focus_box.width;	    }	  crect.y = focus_orig.y - focus_box.height;	  crect.height = focus_box.height + focus_box.depth;	  gtk_draw_insertion_cursor(GTK_WIDGET(math_view),				    drawable,				    NULL,				    &crect,				    TRUE,				    GTK_TEXT_DIR_LTR,				    FALSE);	}    }}