summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-09-12 15:26:43 +0200
committerJan Holesovsky <kendy@collabora.com>2014-09-12 15:30:00 +0200
commit1eb4a0472a02beee0a473127e1ee84381b8c230e (patch)
tree1db18a69ccbee1b632973a853c8c76826f6142f7 /svx
parent3d20965ee5dc009090fe0e3dad2cec3d78344318 (diff)
3D charts: Call the 3D chart update from the lazy update, instead of always.
Change-Id: Ie3603695cbabe9ebc734b80d00ade553cf31d987
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/viewobjectcontact.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx
index 91aecee9fa5c..f17b4d981ddc 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -207,14 +207,6 @@ namespace sdr
const basegfx::B2DRange& ViewObjectContact::getObjectRange() const
{
-#if HAVE_FEATURE_DESKTOP
- // 3D charts need to be notified separately, they are not to be
- // drawn by the drawinglayer
- ViewContactOfSdrOle2Obj* pViewContact = dynamic_cast<ViewContactOfSdrOle2Obj*>(&GetViewContact());
- if (pViewContact && pViewContact->GetOle2Obj().IsReal3DChart())
- ChartHelper::updateChart(pViewContact->GetOle2Obj().getXModel());
-#endif
-
if(maObjectRange.isEmpty())
{
// if range is not computed (new or LazyInvalidate objects), force it
@@ -263,6 +255,14 @@ namespace sdr
// reset flag
mbLazyInvalidate = false;
+#if HAVE_FEATURE_DESKTOP
+ // 3D charts need to be notified separately, they are not to be
+ // drawn by the drawinglayer
+ ViewContactOfSdrOle2Obj* pViewContact = dynamic_cast<ViewContactOfSdrOle2Obj*>(&GetViewContact());
+ if (pViewContact && pViewContact->GetOle2Obj().IsReal3DChart())
+ ChartHelper::updateChart(pViewContact->GetOle2Obj().getXModel());
+#endif
+
// force ObjectRange
getObjectRange();