diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-09-16 14:36:38 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-09-16 14:36:38 +0200 |
commit | 9035f00ede7925eb699864d17baf7c897a8c7e53 (patch) | |
tree | 17566c3581a01e0ae873d0fc1ef0c9fcfda77356 | |
parent | coverity#1372990 xmloff: use unique_ptr for RewindMaps (diff) | |
download | core-9035f00ede7925eb699864d17baf7c897a8c7e53.tar.gz core-9035f00ede7925eb699864d17baf7c897a8c7e53.zip |
embeddedobj: add a comment why the original size is restored
... in OCommonEmbeddedObject::getPreferredVisualRepresentation()
Change-Id: I326b7df4350f34fc9a1c363ea0e9bc77d8f1e976
-rw-r--r-- | embeddedobj/source/commonembedding/visobj.cxx | 2 |
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)) |