Index: bin/booh
===================================================================
RCS file: /opt/cvs/booh/bin/booh,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -r1.200 -r1.201
--- bin/booh	16 Jun 2007 17:48:51 -0000	1.200
+++ bin/booh	16 Jun 2007 17:55:12 -0000	1.201
@@ -454,7 +454,7 @@
     $modified = true
 
     #- update rotate attribute
-    xmlelem.add_attribute("#{attributes_prefix}rotate", (xmlelem.attributes["#{attributes_prefix}rotate"].to_i + angle) % 360)
+    xmlelem.add_attribute("#{attributes_prefix}rotate", ((xmlelem.attributes["#{attributes_prefix}rotate"].to_i + angle) % 360).to_s)
 
     $modified_pixbufs[thumbnail_img] ||= {}
     $modified_pixbufs[thumbnail_img][:angle_to_orig] = (($modified_pixbufs[thumbnail_img][:angle_to_orig] || 0) + angle) % 360
@@ -556,7 +556,7 @@
     if value.nil?
         xmldir.delete_attribute("#{attributes_prefix}pano-amount")
     else
-        xmldir.add_attribute("#{attributes_prefix}pano-amount", value)
+        xmldir.add_attribute("#{attributes_prefix}pano-amount", value.to_s)
     end
 end
 
Index: lib/booh/booh-lib.rb
===================================================================
RCS file: /opt/cvs/booh/lib/booh/booh-lib.rb,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- lib/booh/booh-lib.rb	16 Jun 2007 17:48:51 -0000	1.62
+++ lib/booh/booh-lib.rb	16 Jun 2007 17:55:12 -0000	1.63
@@ -327,7 +327,7 @@
                 end
                 rotate = felem.attributes["#{attributes_prefix}rotate"]
                 if !rotate
-                    felem.add_attribute("#{attributes_prefix}rotate", rotate = guess_rotate(orig).to_i)
+                    felem.add_attribute("#{attributes_prefix}rotate", rotate = guess_rotate(orig).to_s)
                 end
                 convert_options += "-rotate #{rotate} "
                 if felem.attributes["#{attributes_prefix}enhance"]

