]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 27 Oct 2009 02:05:08 +0000 (02:05 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 27 Oct 2009 02:05:08 +0000 (02:05 +0000)
ChangeLog
ImageMagick.spec
config/configure.xml
libtool
magick/property.c
magick/version.h
version.sh

index fb77ee5646bb31e5ab313a28b7d515438ab633cd..37fd01a39e791351991aa6df7ba10fa7cd8dfd75 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2009-10-26  6.5.7-2 Chris Madison  <madisonblu@gmail...>
   * Only call InstantiateXComponent() if X11 support is included.
   * Correct hue computation for the HSB colorspace.
+  * Convert SVG clipping path points from unsigned to long.
 
 2009-10-23  6.5.7-1 Samuel Thibault  <samuel.thibault@ens-l...>
   * Braille coder fix for DirectClass images
index 303d8d0ffbe8c22658b3b796dbe707a876800030..adbe6d2d5ec05ec82ae85924b991839c8cb2c061 100644 (file)
@@ -1,5 +1,5 @@
 %define VERSION  6.5.7
-%define Patchlevel  3
+%define Patchlevel  2
 
 Name:           ImageMagick
 Version:        %{VERSION}
index 4d71eb2f3ab3031ea47080bec58192c441938649..bb058f60c66ccf352e1dc47211b0ad8e268f8b5f 100644 (file)
@@ -8,7 +8,7 @@
 <configuremap>
   <configure name="NAME" value="ImageMagick"/>
   <configure name="LIB_VERSION" value="0x657"/>
-  <configure name="LIB_VERSION_NUMBER" value="6,5,7,3"/>
+  <configure name="LIB_VERSION_NUMBER" value="6,5,7,2"/>
   <configure name="RELEASE_DATE" value="2009-10-26"/>
   <configure name="CONFIGURE" value="./configure "/>
   <configure name="PREFIX" value="/usr/local"/>
diff --git a/libtool b/libtool
index 23e67186cd765395b4cddfdf794ced62be68ad55..f0cc226b8bb8e65a11dce2b4cd54fbd86163114a 100755 (executable)
--- a/libtool
+++ b/libtool
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 # libtool - Provide generalized library-building support services.
-# Generated automatically by config.status (ImageMagick) 6.5.7-3
+# Generated automatically by config.status (ImageMagick) 6.5.7-2
 # Libtool was configured on host magick.imagemagick.org:
 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
 #
index 1657f06c6c6fd1d9149f885a5d3432df4fc3b102..d4b04e5317aee37f6b1d636d64b2e4f0fd1ad240 100644 (file)
@@ -1659,8 +1659,18 @@ static char *TracePSClippath(const unsigned char *blob,size_t length,
         */
         for (i=0; i < 3; i++)
         {
-          y=(long) ReadPropertyMSBLong(&blob,&length);
-          x=(long) ReadPropertyMSBLong(&blob,&length);
+          unsigned long 
+            xx,
+            yy;
+
+          yy=ReadPropertyMSBLong(&blob,&length);
+          xx=ReadPropertyMSBLong(&blob,&length);
+          x=(long) xx;
+          if (xx > 2147483647)
+            x=xx-4294967295-1;
+          y=(long) yy;
+          if (yy > 2147483647)
+            y=yy-4294967295-1;
           point[i].x=(double) x/4096/4096;
           point[i].y=1.0-(double) y/4096/4096;
         }
@@ -1839,65 +1849,73 @@ static char *TraceSVGClippath(const unsigned char *blob,size_t length,
             */
             blob+=24;
             length-=24;
+            break;
           }
-        else
+        /*
+          Add sub-path knot
+        */
+        for (i=0; i < 3; i++)
+        {
+          unsigned long 
+            xx,
+            yy;
+
+          yy=ReadPropertyMSBLong(&blob,&length);
+          xx=ReadPropertyMSBLong(&blob,&length);
+          x=(long) xx;
+          if (xx > 2147483647)
+            x=xx-4294967295-1;
+          y=(long) yy;
+          if (yy > 2147483647)
+            y=yy-4294967295-1;
+          point[i].x=(double) x*columns/4096/4096;
+          point[i].y=(double) y*rows/4096/4096;
+        }
+        if (in_subpath == MagickFalse)
           {
-            /*
-              Add sub-path knot
-            */
+            (void) FormatMagickString(message,MaxTextExtent,"M %g,%g\n",
+              point[1].x,point[1].y);
             for (i=0; i < 3; i++)
             {
-              y=(long) ReadPropertyMSBLong(&blob,&length);
-              x=(long) ReadPropertyMSBLong(&blob,&length);
-              point[i].x=(double) x*columns/4096/4096;
-              point[i].y=(double) y*rows/4096/4096;
+              first[i]=point[i];
+              last[i]=point[i];
             }
-            if (in_subpath == MagickFalse)
-              {
-                (void) FormatMagickString(message,MaxTextExtent,"M %g,%g\n",
-                  point[1].x,point[1].y);
-                for (i=0; i < 3; i++)
-                {
-                  first[i]=point[i];
-                  last[i]=point[i];
-                }
-              }
+          }
+        else
+          {
+            if ((last[1].x == last[2].x) && (last[1].y == last[2].y) &&
+                (point[0].x == point[1].x) && (point[0].y == point[1].y))
+              (void) FormatMagickString(message,MaxTextExtent,"L %g,%g\n",
+                point[1].x,point[1].y);
+            else
+              (void) FormatMagickString(message,MaxTextExtent,
+                "C %g,%g %g,%g %g,%g\n",last[2].x,last[2].y,
+                point[0].x,point[0].y,point[1].x,point[1].y);
+            for (i=0; i < 3; i++)
+              last[i]=point[i];
+          }
+        (void) ConcatenateString(&path,message);
+        in_subpath=MagickTrue;
+        knot_count--;
+        /*
+          Close the subpath if there are no more knots.
+        */
+        if (knot_count == 0)
+          {
+            if ((last[1].x == last[2].x) && (last[1].y == last[2].y) &&
+                (first[0].x == first[1].x) && (first[0].y == first[1].y))
+              (void) FormatMagickString(message,MaxTextExtent,"L %g,%g Z\n",
+                first[1].x,first[1].y);
             else
               {
-                if ((last[1].x == last[2].x) && (last[1].y == last[2].y) &&
-                    (point[0].x == point[1].x) && (point[0].y == point[1].y))
-                  (void) FormatMagickString(message,MaxTextExtent,"L %g,%g\n",
-                    point[1].x,point[1].y);
-                else
-                  (void) FormatMagickString(message,MaxTextExtent,
-                    "C %g,%g %g,%g %g,%g\n",last[2].x,last[2].y,
-                    point[0].x,point[0].y,point[1].x,point[1].y);
-                for (i=0; i < 3; i++)
-                  last[i]=point[i];
-              }
-            (void) ConcatenateString(&path,message);
-            in_subpath=MagickTrue;
-            knot_count--;
-            /*
-              Close the subpath if there are no more knots.
-            */
-            if (knot_count == 0)
-              {
-                if ((last[1].x == last[2].x) && (last[1].y == last[2].y) &&
-                    (first[0].x == first[1].x) && (first[0].y == first[1].y))
-                  (void) FormatMagickString(message,MaxTextExtent,"L %g,%g Z\n",
-                    first[1].x,first[1].y);
-                else
-                  {
-                    (void) FormatMagickString(message,MaxTextExtent,
-                      "C %g,%g %g,%g %g,%g Z\n",last[2].x,last[2].y,
-                      first[0].x,first[0].y,first[1].x,first[1].y);
-                    (void) ConcatenateString(&path,message);
-                  }
-                in_subpath=MagickFalse;
+                (void) FormatMagickString(message,MaxTextExtent,
+                  "C %g,%g %g,%g %g,%g Z\n",last[2].x,last[2].y,
+                  first[0].x,first[0].y,first[1].x,first[1].y);
+                (void) ConcatenateString(&path,message);
               }
+            in_subpath=MagickFalse;
           }
-          break;
+        break;
       }
       case 6:
       case 7:
index 48b6cb7ac28a84be914c5d748008507f7c6ba678..9cae80c20ea704702d53637b0ba208b3616d7189 100644 (file)
@@ -30,7 +30,7 @@ extern "C" {
 #define MagickLibVersion  0x657
 #define MagickLibVersionText  "6.5.7"
 #define MagickLibVersionNumber  2,0,0
-#define MagickLibSubversion  "-3"
+#define MagickLibSubversion  "-2"
 #define MagickReleaseDate  "2009-10-26"
 #define MagickChangeDate   "20091026"
 #define MagickAuthoritativeURL  "http://www.imagemagick.org"
index cadc1721bd75d1a74b758bec530d560c8f398d77..52033443b28d4232aa367d895c2e286332b59fb0 100644 (file)
@@ -12,7 +12,7 @@ PACKAGE_NAME='ImageMagick'
 # PACKAGE_NAME (e.g. "1.0.0").
 PACKAGE_VERSION='6.5.7'
 PACKAGE_LIB_VERSION="0x657"
-PACKAGE_RELEASE="3"
+PACKAGE_RELEASE="2"
 PACKAGE_LIB_VERSION_NUMBER="6,5,7,${PACKAGE_RELEASE}"
 PACKAGE_RELEASE_DATE=`date +%F`
 PACKAGE_STRING="$PACKAGE_NAME $PACKAGE_VERSION"