gimp r26493 - trunk/app/tools
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26493 - trunk/app/tools
- Date: Mon, 11 Aug 2008 09:54:13 +0000 (UTC)
Author: neo
Date: Mon Aug 11 09:54:13 2008
New Revision: 26493
URL: http://svn.gnome.org/viewvc/gimp?rev=26493&view=rev
Log:
another minor coding style cleanup
Modified:
trunk/app/tools/gimptexttool.c
Modified: trunk/app/tools/gimptexttool.c
==============================================================================
--- trunk/app/tools/gimptexttool.c (original)
+++ trunk/app/tools/gimptexttool.c Mon Aug 11 09:54:13 2008
@@ -1289,6 +1289,7 @@
NULL);
text_tool->text_box_fixed = TRUE;
+
if (! text)
{
/*
@@ -1339,7 +1340,7 @@
gimp_rectangle_tool_frame_item (GimpRectangleTool *rect_tool,
GimpItem *item)
{
- GimpDisplay *display = GIMP_TOOL (rect_tool)->display;
+ GimpDisplay *display = GIMP_TOOL (rect_tool)->display;
gint offset_x;
gint offset_y;
gint width;
@@ -1348,10 +1349,11 @@
g_return_if_fail (GIMP_IS_ITEM (item));
g_return_if_fail (gimp_item_is_attached (item));
g_return_if_fail (display != NULL);
- g_return_if_fail ( (display->image == item->image) );
+ g_return_if_fail (display->image == item->image);
+
+ width = gimp_item_width (item);
+ height = gimp_item_height (item);
- width = gimp_item_width (item);
- height = gimp_item_height (item);
gimp_item_offsets (item, &offset_x, &offset_y);
gimp_draw_tool_pause (GIMP_DRAW_TOOL (rect_tool));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]