diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-09-12 15:26:43 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-09-12 15:30:00 +0200 |
commit | 1eb4a0472a02beee0a473127e1ee84381b8c230e (patch) | |
tree | 1db18a69ccbee1b632973a853c8c76826f6142f7 /svx | |
parent | 3d20965ee5dc009090fe0e3dad2cec3d78344318 (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.cxx | 16 |
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(); |