]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
Don't output box width if it's 100% (default).
[lyx.git] / src / insets / InsetGraphics.cpp
index f76666fb05cc4ce555c24de07da9da1831c21b8f..ac76d4e251d1afa5aa4de3d57452cec3fd597c13 100644 (file)
@@ -746,8 +746,8 @@ string InsetGraphics::prepareFile(OutputParams const & runparams) const
 }
 
 
-int InsetGraphics::latex(otexstream & os,
-                        OutputParams const & runparams) const
+void InsetGraphics::latex(otexstream & os,
+                         OutputParams const & runparams) const
 {
        // If there is no file specified or not existing,
        // just output a message about it in the latex output.
@@ -796,8 +796,6 @@ int InsetGraphics::latex(otexstream & os,
        os << from_utf8(latex_str);
 
        LYXERR(Debug::GRAPHICS, "InsetGraphics::latex outputting:\n" << latex_str);
-       // Return how many newlines we issued.
-       return int(count(latex_str.begin(), latex_str.end(),'\n'));
 }