Code

fix bug in latex export, when svgwidth has not been defined at all
authorJohan Engelen <goejendaagh@zonnet.nl>
Fri, 26 Feb 2010 21:15:03 +0000 (22:15 +0100)
committerJohan Engelen <goejendaagh@zonnet.nl>
Fri, 26 Feb 2010 21:15:03 +0000 (22:15 +0100)
src/extension/internal/latex-text-renderer.cpp

index df0bfb8cbf1e4b34f7a69604cb4bbbf75abc26b9..07f3d5a6d7541ce08780446d96360f8f27bd2926 100644 (file)
@@ -414,12 +414,12 @@ LaTeXTextRenderer::setupDocument(SPDocument *doc, bool pageBoundingBox, SPItem *
 
     // scaling of the image when including it in LaTeX
 
-    os << "  \\ifx \\svgwidth \\@empty\n";
+    os << "  \\ifx\\svgwidth\\undefined\n";
     os << "    \\setlength{\\unitlength}{" << d->width() * PT_PER_PX << "pt}\n";
     os << "  \\else\n";
     os << "    \\setlength{\\unitlength}{\\svgwidth}\n";
     os << "  \\fi\n";
-    os << "  \\global\\let\\svgwidth\\@empty\n";
+    os << "  \\global\\let\\svgwidth\\undefined\n";
     os << "  \\makeatother\n";
 
     os << "  \\begin{picture}(" << _width << "," << _height << ")%\n";