From: ishmal Date: Sun, 25 Jun 2006 16:41:17 +0000 (+0000) Subject: Fix image transform when there is no rotate or scale X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b9504ae85556942c4e973a5619707c16859ad729;p=inkscape.git Fix image transform when there is no rotate or scale --- diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index 1c29d65ff..f366a9fad 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -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("