summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-09-16 14:36:38 +0200
committerMichael Stahl <mstahl@redhat.com>2016-09-16 14:36:38 +0200
commit9035f00ede7925eb699864d17baf7c897a8c7e53 (patch)
tree17566c3581a01e0ae873d0fc1ef0c9fcfda77356 /embeddedobj
parentdbf87d2124a0c01014b9e839804455d3be38831f (diff)
embeddedobj: add a comment why the original size is restored
... in OCommonEmbeddedObject::getPreferredVisualRepresentation() Change-Id: I326b7df4350f34fc9a1c363ea0e9bc77d8f1e976
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/visobj.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/embeddedobj/source/commonembedding/visobj.cxx b/embeddedobj/source/commonembedding/visobj.cxx
index 6bf9c49e84e2..87a7f3933af3 100644
--- a/embeddedobj/source/commonembedding/visobj.cxx
+++ b/embeddedobj/source/commonembedding/visobj.cxx
@@ -174,6 +174,8 @@ embed::VisualRepresentation SAL_CALL OCommonEmbeddedObject::getPreferredVisualRe
bool bBackToLoaded = false;
if ( m_nObjectState == embed::EmbedStates::LOADED )
{
+ // restore original VisualAreaSize, because writer objects set
+ // themselves to a default size OLESIZE
awt::Size aOrigSize = getVisualAreaSize(nAspect);
changeState(embed::EmbedStates::RUNNING);
if (aOrigSize != getVisualAreaSize(nAspect))