GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 2512f495 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Revert part of patch 1.48 to item-edit.c

2000-06-22  Jody Goldberg <jgoldberg@home.com>

	* src/item-edit.c (item_edit_draw_text) : Restore code that was
	  deleted to handle a cursor on another line, or at the start of the
	  line.
parent a27771c6
2000-06-22 Jody Goldberg <jgoldberg@home.com>
* src/item-edit.c (item_edit_draw_text) : Restore code that was
deleted to handle a cursor on another line, or at the start of the
line.
2000-06-22 Jon K Hellan <hellan@acm.org>
* src/sheet-object-container.c
......
2000-06-22 Jody Goldberg <jgoldberg@home.com>
* src/item-edit.c (item_edit_draw_text) : Restore code that was
deleted to handle a cursor on another line, or at the start of the
line.
2000-06-22 Jon K Hellan <hellan@acm.org>
* src/sheet-object-container.c
......
2000-06-22 Jody Goldberg <jgoldberg@home.com>
* src/item-edit.c (item_edit_draw_text) : Restore code that was
deleted to handle a cursor on another line, or at the start of the
line.
2000-06-22 Jon K Hellan <hellan@acm.org>
* src/sheet-object-container.c
......
2000-06-22 Jody Goldberg <jgoldberg@home.com>
* src/item-edit.c (item_edit_draw_text) : Restore code that was
deleted to handle a cursor on another line, or at the start of the
line.
2000-06-22 Jon K Hellan <hellan@acm.org>
* src/sheet-object-container.c
......
2000-06-22 Jody Goldberg <jgoldberg@home.com>
* src/item-edit.c (item_edit_draw_text) : Restore code that was
deleted to handle a cursor on another line, or at the start of the
line.
2000-06-22 Jon K Hellan <hellan@acm.org>
* src/sheet-object-container.c
......
2000-06-22 Jody Goldberg <jgoldberg@home.com>
* src/item-edit.c (item_edit_draw_text) : Restore code that was
deleted to handle a cursor on another line, or at the start of the
line.
2000-06-22 Jon K Hellan <hellan@acm.org>
* src/sheet-object-container.c
......
2000-06-22 Jody Goldberg <jgoldberg@home.com>
* src/item-edit.c (item_edit_draw_text) : Restore code that was
deleted to handle a cursor on another line, or at the start of the
line.
2000-06-22 Jon K Hellan <hellan@acm.org>
* src/sheet-object-container.c
......
......@@ -173,11 +173,13 @@ item_edit_draw_text (ItemEdit *item_edit, GdkDrawable *drawable, GtkStyle *style
GdkGC *gc = style->black_gc;
/* If this segment contains the cursor draw it */
if (cursor_pos <= text_length) {
gdk_draw_text (drawable, font, gc, x, y, text, cursor_pos);
x += gdk_text_width (font, text, cursor_pos);
text += cursor_pos;
text_length -= cursor_pos;
if (0 <= cursor_pos && cursor_pos <= text_length) {
if (cursor_pos > 0) {
gdk_draw_text (drawable, font, gc, x, y, text, cursor_pos);
x += gdk_text_width (font, text, cursor_pos);
text += cursor_pos;
text_length -= cursor_pos;
}
item_edit_draw_cursor (item_edit, drawable, style, x, y, font);
}
......
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