]> git.lyx.org Git - features.git/commitdiff
Do not correct clipping bounding box for vector formats
authorEnrico Forestieri <forenr@lyx.org>
Fri, 25 Sep 2020 10:01:57 +0000 (12:01 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 25 Sep 2020 10:01:57 +0000 (12:01 +0200)
This amends 380f34a1 that only took into account the postscript format.

src/insets/InsetGraphics.cpp

index 99fcf3d6fc56d2d3369506d316687acccb6ac430..15651c9cdf6e7580525ddf5964b99852184f2e34 100644 (file)
@@ -326,7 +326,7 @@ void InsetGraphics::outBoundingBox(graphics::BoundingBox & bbox) const
        string const format = theFormats().getFormatFromFile(unzipped_file);
        if (zipped)
                unzipped_file.removeFile();
-       if (Formats::isPostScriptFileFormat(format))
+       if (theFormats().getFormat(format)->vectorFormat())
                return;
 
        // Get the actual image dimensions in pixels