dia r4066 - in trunk: . plug-ins/svg



Author: hans
Date: Sat Jun  7 10:00:48 2008
New Revision: 4066
URL: http://svn.gnome.org/viewvc/dia?rev=4066&view=rev

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

	* plug-ins/svg/svg-import.c : if the drawing size was giving in points
	the scaling was going in the wrong direction leading to huge diagrams


Modified:
   trunk/ChangeLog
   trunk/plug-ins/svg/svg-import.c

Modified: trunk/plug-ins/svg/svg-import.c
==============================================================================
--- trunk/plug-ins/svg/svg-import.c	(original)
+++ trunk/plug-ins/svg/svg-import.c	Sat Jun  7 10:00:48 2008
@@ -77,8 +77,9 @@
 static gdouble user_scale = 20.0;
 
 /*!
- * Read a numeric value from a string taking unit into account. The signature is the same as
- * g_ascii_strtod but also reads the unit if there is one
+ * Read a numeric value from a string taking unit into account. 
+ * The signature is the same as g_ascii_strtod but also reads 
+ * the unit if there is one
  */
 static gdouble
 get_value_as_cm (const gchar *nptr,
@@ -101,7 +102,7 @@
     else if (strncmp(endp, "in", 2) == 0)
         val /= 2.54, endp+=2;
     else if (strncmp(endp, "pt", 2) == 0)
-        val /= 0.03528, endp+=2;
+        val *= 0.03528, endp+=2;
     /* the rest can't really be resolved here, passing unit to caller (who will just ignore at the moment) */
     
     if (endptr)



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