[LyX/master] Do not correct clipping bounding box for vector formats

Enrico Forestieri forenr at lyx.org
Fri Sep 25 09:36:19 UTC 2020


commit 9b1763cd42e0fa65df716e0f4ca9dc7dd5d49c9c
Author: Enrico Forestieri <forenr at lyx.org>
Date:   Fri Sep 25 12:01:57 2020 +0200

    Do not correct clipping bounding box for vector formats
    
    This amends 380f34a1 that only took into account the postscript format.
---
 src/insets/InsetGraphics.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp
index 99fcf3d..15651c9 100644
--- a/src/insets/InsetGraphics.cpp
+++ b/src/insets/InsetGraphics.cpp
@@ -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


More information about the lyx-cvs mailing list