[gimp] app: make the change_spacing() call only act on the cursor position
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make the change_spacing() call only act on the cursor position
- Date: Sun, 28 Feb 2010 12:59:18 +0000 (UTC)
commit d88949547dc837e663d5b4f834e8bea4f3209826
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 28 13:58:08 2010 +0100
app: make the change_spacing() call only act on the cursor position
if there is no selection, instead of on the rest of the buffer.
app/tools/gimptexttool-editor.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimptexttool-editor.c b/app/tools/gimptexttool-editor.c
index e200365..93df349 100644
--- a/app/tools/gimptexttool-editor.c
+++ b/app/tools/gimptexttool-editor.c
@@ -1066,13 +1066,14 @@ gimp_text_tool_change_spacing (GimpTextTool *text_tool,
{
gtk_text_buffer_get_iter_at_mark (buffer, &start,
gtk_text_buffer_get_insert (buffer));
- gtk_text_buffer_get_end_iter (buffer, &end);
+ end = start;
}
gimp_draw_tool_pause (GIMP_DRAW_TOOL (text_tool));
gtk_text_iter_order (&start, &end);
- gimp_text_buffer_change_spacing (text_tool->buffer, &start, &end, count);
+ gimp_text_buffer_change_spacing (text_tool->buffer, &start, &end,
+ count * PANGO_SCALE);
gimp_draw_tool_resume (GIMP_DRAW_TOOL (text_tool));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]