[Libreoffice-commits] core.git: svx/inc svx/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 17 13:44:52 UTC 2020
svx/inc/galobj.hxx | 2 ++
svx/source/gallery2/galobj.cxx | 10 ++++++++++
2 files changed, 12 insertions(+)
New commits:
commit e12be466706d8984c0d1adcd2538fa9a950273f7
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Fri Jul 17 15:27:42 2020 +0200
Commit: Michael Stahl <michael.stahl at cib.de>
CommitDate: Fri Jul 17 15:44:14 2020 +0200
add explicit copy-constructor for SgaObject
Change-Id: If833cbd28af2043f71bc1ada4ea7b0f80bebf682
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98974
Tested-by: Michael Stahl <michael.stahl at cib.de>
Reviewed-by: Michael Stahl <michael.stahl at cib.de>
diff --git a/svx/inc/galobj.hxx b/svx/inc/galobj.hxx
index 6501b49ff1c7..1c2b013bf6f9 100644
--- a/svx/inc/galobj.hxx
+++ b/svx/inc/galobj.hxx
@@ -67,6 +67,8 @@ protected:
public:
SgaObject();
+ SgaObject(const SgaObject& aObject);
+
virtual ~SgaObject() {};
virtual SgaObjKind GetObjKind() const = 0;
diff --git a/svx/source/gallery2/galobj.cxx b/svx/source/gallery2/galobj.cxx
index ef5972181105..e2922419f1e4 100644
--- a/svx/source/gallery2/galobj.cxx
+++ b/svx/source/gallery2/galobj.cxx
@@ -43,6 +43,16 @@ SgaObject::SgaObject()
{
}
+SgaObject::SgaObject(const SgaObject& aObject)
+ : aThumbBmp(aObject.aThumbBmp)
+ , aThumbMtf(aObject.aThumbMtf)
+ , aURL(aObject.aURL)
+ , aTitle(aObject.aTitle)
+ , bIsValid(aObject.bIsValid)
+ , bIsThumbBmp(aObject.bIsThumbBmp)
+{
+}
+
BitmapEx SgaObject::createPreviewBitmapEx(const Size& rSizePixel) const
{
BitmapEx aRetval;
More information about the Libreoffice-commits
mailing list