From cfe9b1a70cf6413d35bd199bfb1d98b245903f89 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 27 Sep 2022 21:43:22 +0200 Subject: [PATCH] Updating oversampling call to keep bold line style. --- src/Gui/Thumbnail.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Gui/Thumbnail.cpp b/src/Gui/Thumbnail.cpp index fd85e19d9c..f5b607d5e2 100644 --- a/src/Gui/Thumbnail.cpp +++ b/src/Gui/Thumbnail.cpp @@ -95,16 +95,14 @@ void Thumbnail::SaveDocFile (Base::Writer &writer) const } QColor invalid; - QImage scaledImg; - this->viewer->imageFromFramebuffer(this->size*4, this->size*4, 0, invalid, scaledImg); - if (!scaledImg.isNull()) - img = scaledImg.scaled(this->size, this->size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation); + this->viewer->imageFromFramebuffer(this->size, this->size, 4, invalid, img); } // Get app icon and resize to half size to insert in topbottom position over the current view snapshot QPixmap appIcon = Gui::BitmapFactory().pixmap(App::Application::Config()["AppIcon"].c_str()); QPixmap px = appIcon; if (!img.isNull()) { + // Create a small "Fc" Application icon in the bottom right of the thumbnail if (App::GetApplication().GetParameterGroupByPath ("User parameter:BaseApp/Preferences/Document")->GetBool("AddThumbnailLogo",true)) { // only scale app icon if an offscreen image could be created