diff --git a/src/Gui/DlgSettingsDocument.ui b/src/Gui/DlgSettingsDocument.ui
index c340757e06..e78b399b16 100644
--- a/src/Gui/DlgSettingsDocument.ui
+++ b/src/Gui/DlgSettingsDocument.ui
@@ -7,7 +7,7 @@
0
0
500
- 593
+ 685
@@ -283,7 +283,7 @@
- -
+
-
6
@@ -338,6 +338,22 @@
+ -
+
+
+ Add the FreeCAD logo to the generated thumbnail
+
+
+ true
+
+
+ AddThumbnailLogo
+
+
+ Document
+
+
+
diff --git a/src/Gui/DlgSettingsDocumentImp.cpp b/src/Gui/DlgSettingsDocumentImp.cpp
index 3250964ac9..55ba77947a 100644
--- a/src/Gui/DlgSettingsDocumentImp.cpp
+++ b/src/Gui/DlgSettingsDocumentImp.cpp
@@ -69,6 +69,7 @@ void DlgSettingsDocumentImp::saveSettings()
prefSaveTransaction->onSave();
prefDiscardTransaction->onSave();
prefSaveThumbnail->onSave();
+ prefAddLogo->onSave();
prefSaveBackupFiles->onSave();
prefCountBackupFiles->onSave();
prefDuplicateLabel->onSave();
@@ -97,6 +98,7 @@ void DlgSettingsDocumentImp::loadSettings()
prefSaveTransaction->onRestore();
prefDiscardTransaction->onRestore();
prefSaveThumbnail->onRestore();
+ prefAddLogo->onRestore();
prefSaveBackupFiles->onRestore();
prefCountBackupFiles->onRestore();
prefDuplicateLabel->onRestore();
diff --git a/src/Gui/Thumbnail.cpp b/src/Gui/Thumbnail.cpp
index feb52e0355..9eec6f5d28 100644
--- a/src/Gui/Thumbnail.cpp
+++ b/src/Gui/Thumbnail.cpp
@@ -106,8 +106,13 @@ void Thumbnail::SaveDocFile (Base::Writer &writer) const
}
QPixmap px = Gui::BitmapFactory().pixmap(App::Application::Config()["AppIcon"].c_str());
- if (!img.isNull())
- px = BitmapFactory().merge(QPixmap::fromImage(img),px,BitmapFactoryInst::BottomRight);
+ if (!img.isNull()) {
+ if (App::GetApplication().GetParameterGroupByPath
+ ("User parameter:BaseApp/Preferences/Document")->GetBool("AddThumbnailLogo",true))
+ px = BitmapFactory().merge(QPixmap::fromImage(img),px,BitmapFactoryInst::BottomRight);
+ else
+ px = QPixmap::fromImage(img);
+ }
if (!px.isNull()) {
// according to specification add some meta-information to the image