From: Johan Engelen Date: Fri, 26 Feb 2010 21:15:03 +0000 (+0100) Subject: fix bug in latex export, when svgwidth has not been defined at all X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2cbc52fa72caaaa7f1065122c70f9f4f0372b227;p=inkscape.git fix bug in latex export, when svgwidth has not been defined at all --- diff --git a/src/extension/internal/latex-text-renderer.cpp b/src/extension/internal/latex-text-renderer.cpp index df0bfb8cb..07f3d5a6d 100644 --- a/src/extension/internal/latex-text-renderer.cpp +++ b/src/extension/internal/latex-text-renderer.cpp @@ -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";