summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-09-29 15:25:30 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2018-09-29 19:35:57 +0200
commitc01b66846d6651600893ae5d3c590e9076065032 (patch)
treed0e314a7ba15feb6a8ee01a0a62286694e7bf28c /svx
parent281a44a61b692f85007412d0b460284fc228b751 (diff)
tdf#120066 Only invalidate SdrModel when SdrObject has SdrPage
Change-Id: If32dd85f8d04a3f597b033272ffc2fc0bb73fbad Reviewed-on: https://gerrit.libreoffice.org/61132 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'svx')
-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 b9ba5a92dda9..e56e0d9e5888 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -947,7 +947,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();
}