Code

Fix image transform when there is no rotate or scale
authorishmal <ishmal@users.sourceforge.net>
Sun, 25 Jun 2006 16:41:17 +0000 (16:41 +0000)
committerishmal <ishmal@users.sourceforge.net>
Sun, 25 Jun 2006 16:41:17 +0000 (16:41 +0000)
src/extension/internal/odf.cpp

index 1c29d65ff6a5e0b9ae363787b2e13d098f8094d3..f366a9fad76b17b6d87bc174c8cb6fe616a42a1e 100644 (file)
@@ -1715,8 +1715,15 @@ bool OdfOutput::writeTree(Writer &outs, Inkscape::XML::Node *node)
         outs.printf("svg:width=\"%.3fcm\" svg:height=\"%.3fcm\" ",
                                   iwidth, iheight);
         if (itemTransformString.size() > 0)
+            {
             outs.printf("draw:transform=\"%s translate(%.3fcm, %.3fcm)\" ",
-                itemTransformString.c_str(), ix, iy);
+                           itemTransformString.c_str(), ix, iy);
+            }
+        else
+            {
+            outs.printf("draw:transform=\"translate(%.3fcm, %.3fcm)\" ",
+                                ix, iy);
+            }
 
         outs.printf(">\n");
         outs.printf("    <draw:image xlink:href=\"%s\" xlink:type=\"simple\"\n",