[gimp] Fix corner case of text tool up/down navigation
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Fix corner case of text tool up/down navigation
- Date: Sun, 28 Jun 2009 15:28:18 +0000 (UTC)
commit 4c5c158bfad394686616af0f661c9462a3ce702f
Author: Michael Natterer <mitch gimp org>
Date: Sun Jun 28 17:27:02 2009 +0200
Fix corner case of text tool up/down navigation
(gimp_text_tool_move_cursor): really go to the beginning/end of the
buffer when there are no further lines to go up/down to.
app/tools/gimptexttool.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index ac44ccb..c59103d 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -1506,12 +1506,12 @@ gimp_text_tool_move_cursor (GimpTextTool *text_tool,
if (line < 0)
{
- gtk_text_iter_set_line_offset (&cursor, 0);
+ cursor = start;
break;
}
else if (line >= pango_layout_get_line_count (layout))
{
- gtk_text_iter_forward_to_line_end (&cursor);
+ cursor = end;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]