summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-09-29 15:25:30 +0200
committerJuergen Funk (CIB) <juergen.funk_ml@cib.de>2019-11-29 11:05:53 +0100
commit3afd9bad338ffee53d2542e7417f05607b61f955 (patch)
treef3d2f60969300f7787624910d224fa4262f99da3
parent83e5dd0ec01fd3436718e86bc0c491bf265d7dd7 (diff)
tdf#120066 Only invalidate SdrModel when SdrObject has SdrPage
trac#29781 Change-Id: If32dd85f8d04a3f597b033272ffc2fc0bb73fbad Reviewed-on: https://gerrit.libreoffice.org/61132 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de> Reviewed-on: https://gerrit.libreoffice.org/84034 Reviewed-by: Juergen Funk (CIB) <juergen.funk_ml@cib.de> Tested-by: Juergen Funk (CIB) <juergen.funk_ml@cib.de>
-rw-r--r--svx/source/svdraw/svdobj.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 7300dbe2f5b8..07a5473bd04d 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -930,7 +930,12 @@ void SdrObject::SetChanged()
// of the next changes. It should not mean to have a SdrModel
// set (this is guaranteed now), but should be connected to
// being added to a SdrPage (?)
- if(IsInserted())
+ // TTTT tdf#120066 Indeed - This triggers e.g. by CustomShape
+ // geometry-presenting SdrObjects that are in a SdrObjGroup,
+ // but the SdrObjGroup is *by purpose* not inserted.
+ // Need to check deeper and maybe identify all ::IsInserted()
+ // calls by rename and let the compiler work...
+ if(nullptr != getSdrPageFromSdrObject())
{
getSdrModelFromSdrObject().SetChanged();
}