From 2cbc52fa72caaaa7f1065122c70f9f4f0372b227 Mon Sep 17 00:00:00 2001 From: Johan Engelen Date: Fri, 26 Feb 2010 22:15:03 +0100 Subject: [PATCH] fix bug in latex export, when svgwidth has not been defined at all --- src/extension/internal/latex-text-renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.30.2