summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-23 09:12:15 +0100
committerAndras Timar <andras.timar@collabora.com>2015-08-06 12:51:34 +0200
commit286d539fdf869f4513f6a9fe4d2415a9e28557b0 (patch)
treee5d799dadc5db95438ca4452d13fb2dfc2187670 /embeddedobj
parent9a056f921f3d9b26be08cb1a636ada307ecfc469 (diff)
Resolves: tdf#91683 Revert avoid activating chart objects...
just to get their mapunit or set visual size. Will have to try something different here apparently This reverts commit 757f461ef12548af0be470f7c05ff67df3dc1314.
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/visobj.cxx20
-rw-r--r--embeddedobj/source/inc/commonembobj.hxx1
2 files changed, 6 insertions, 15 deletions
diff --git a/embeddedobj/source/commonembedding/visobj.cxx b/embeddedobj/source/commonembedding/visobj.cxx
index cd16ffb61052..fea7c3a2cf0a 100644
--- a/embeddedobj/source/commonembedding/visobj.cxx
+++ b/embeddedobj/source/commonembedding/visobj.cxx
@@ -54,14 +54,10 @@ void SAL_CALL OCommonEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const
bool bBackToLoaded = false;
if ( m_nObjectState == embed::EmbedStates::LOADED )
{
- //attempt an optimization for chart components
- if (!IsChartComponent())
- {
- changeState( embed::EmbedStates::RUNNING );
+ changeState( embed::EmbedStates::RUNNING );
- // the links should be switched back to loaded state for now to avoid locking problems
- bBackToLoaded = m_bIsLink;
- }
+ // the links should be switched back to loaded state for now to avoid locking problems
+ bBackToLoaded = m_bIsLink;
}
bool bSuccess = m_pDocHolder->SetExtent( nAspect, aSize );
@@ -137,14 +133,10 @@ sal_Int32 SAL_CALL OCommonEmbeddedObject::getMapUnit( sal_Int64 nAspect )
bool bBackToLoaded = false;
if ( m_nObjectState == embed::EmbedStates::LOADED )
{
- //attempt an optimization for chart components
- if (!IsChartComponent())
- {
- changeState( embed::EmbedStates::RUNNING );
+ changeState( embed::EmbedStates::RUNNING );
- // the links should be switched back to loaded state for now to avoid locking problems
- bBackToLoaded = m_bIsLink;
- }
+ // the links should be switched back to loaded state for now to avoid locking problems
+ bBackToLoaded = m_bIsLink;
}
sal_Int32 nResult = m_pDocHolder->GetMapUnit( nAspect );
diff --git a/embeddedobj/source/inc/commonembobj.hxx b/embeddedobj/source/inc/commonembobj.hxx
index bc89f9a8c853..410850e25099 100644
--- a/embeddedobj/source/inc/commonembobj.hxx
+++ b/embeddedobj/source/inc/commonembobj.hxx
@@ -171,7 +171,6 @@ private:
const OUString& aNewName );
OUString GetDocumentServiceName() const { return m_aDocServiceName; }
- bool IsChartComponent() const { return m_aDocServiceName == "com.sun.star.chart2.ChartDocument"; }
OUString GetPresetFilterName() const { return m_aPresetFilterName; }
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >