dia r4088 - in trunk: . app



Author: hans
Date: Sun Jul 13 18:31:48 2008
New Revision: 4088
URL: http://svn.gnome.org/viewvc/dia?rev=4088&view=rev

Log:
2008-07-13  Hans Breuer  <hans breuer org>

	* app/modify_tool.c : mouse position and bounding box on statusbar
	when resizing objects

	* NEWS : mention wmf plug-in and libEMF



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/app/modify_tool.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Sun Jul 13 18:31:48 2008
@@ -20,6 +20,8 @@
 
   * overhaul of the DXF plug-in (import and export)
 
+  * with the help of libEMF dia now can write EMF on Linux(x86), too.
+
   * new database table relation shapes
 
   * a huge step forward regarding properties of grouped objects

Modified: trunk/app/modify_tool.c
==============================================================================
--- trunk/app/modify_tool.c	(original)
+++ trunk/app/modify_tool.c	Sun Jul 13 18:31:48 2008
@@ -540,7 +540,13 @@
       GtkStatusbar *statusbar = GTK_STATUSBAR (ddisp->modified_status);
       guint context_id = gtk_statusbar_get_context_id (statusbar, "ObjectPos");
     
-      postext = g_strdup_printf("%.3f, %.3f", to.x, to.y);
+      if (tool->object) { /* play safe */
+	real w = tool->object->bounding_box.right - tool->object->bounding_box.left;
+	real h = tool->object->bounding_box.bottom - tool->object->bounding_box.top;
+        postext = g_strdup_printf("%.3f, %.3f (%.3fx%.3f)", to.x, to.y, w, h);
+      } else {
+        postext = g_strdup_printf("%.3f, %.3f", to.x, to.y);
+      }
 			       
       gtk_statusbar_pop (statusbar, context_id); 
       gtk_statusbar_push (statusbar, context_id, postext);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]